Files
infocom-systems-design/node_modules/html-to-image/es/dataurl.d.ts
2025-10-03 22:27:28 +03:00

9 lines
469 B
TypeScript

import { Options } from './types';
export declare function isDataUrl(url: string): boolean;
export declare function makeDataUrl(content: string, mimeType: string): string;
export declare function fetchAsDataURL<T>(url: string, init: RequestInit | undefined, process: (data: {
result: string;
res: Response;
}) => T): Promise<T>;
export declare function resourceToDataURL(resourceUrl: string, contentType: string | undefined, options: Options): Promise<string>;