You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
492 B

/**
* Returns a `Buffer` instance from the given data URI `uri`.
*
* @param {String} uri Data URI to turn into a Buffer instance
* @return {Buffer} Buffer instance from Data URI
* @api public
*/
/// <reference types="node" />
declare function dataUriToBuffer(uri: string): dataUriToBuffer.MimeBuffer;
declare namespace dataUriToBuffer {
interface MimeBuffer extends Buffer {
type: string;
typeFull: string;
charset: string;
}
}
export = dataUriToBuffer;