import { Json } from './types'; export declare function downloadText(filename: string, text: string, type?: string): void; export declare function downloadImageBase64(filename: string, base64: string): Promise; export declare function downloadImage(filename: string, url: string): Promise; export declare function downloadJson(filename: string, data: Json): void; export declare const sanitizeValueForCsv: (value: any) => any; export declare function downloadCsv(filename: string, fieldMap: Record, data: Json): void; export declare function downloadHtml(filename: string, html: string): void; export declare const downloadCanvas: (filename: string) => void; export declare const downloadUrl: (url: string, filename: string) => void; export declare const getCanvasBase64: (prefix: string) => string | undefined;