/// <reference types="node" />
/**
 * Determine if a given data URL is valid or not.
 *
 * @see {@link https://developer.mozilla.org/en-US/docs/data_URIs}
 * @see {@link http://tools.ietf.org/html/rfc2397}
 * @see {@link http://tools.ietf.org/html/rfc2396#section2}
 */
declare function validate(str: string): boolean;
export declare type DataURL = {
    mediaType?: string;
    contentType?: string;
    name?: string;
    base64: boolean;
    data: string;
    toBuffer: () => Buffer;
    [k: string]: any;
};
/**
 * Parse a given data URL into its individual parts.
 *
 */
declare function parse(str: string): false | DataURL;
export { parse, validate };
