UNPKG

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