UNPKG

take-shot

Version:
8 lines (7 loc) 402 B
export declare function isDataUrl(url: string): boolean; export declare function makeDataUrl(content: string, mimeType: string): string; export declare function fetchAsDataURL<T>(url: string, process: (data: { result: string; res: any; }) => T): Promise<T>; export declare function resourceToDataURL(resourceUrl: string, contentType: string | undefined, placeholder?: string): Promise<string>;