UNPKG

420 BTypeScriptView Raw
1/// <reference types="node" />
2import { DataURI } from './types';
3declare class DataURIParser {
4 fileName?: string;
5 mimetype?: string;
6 content?: string;
7 base64?: string;
8 buffer?: Buffer;
9 encode(fileName: string, handler?: DataURI.Callback): Promise<string | undefined>;
10 format(fileName: string, fileContent: DataURI.Input): DataURIParser;
11 private createMetadata;
12}
13export = DataURIParser;