import { ImageCanvasOptions } from './image'; /** * Find all URLs in svg, download them and replace with the URL in svg with the downloaded data URLs. * @param str - string * @param downloader - function to download the URLs in svg and return the data URL * * @category HTML To Image */ export declare function embedUrlRefs(str: string, downloader?: (p: string) => Promise): Promise; /** * Embeds an HTML string into a svg tag and converts to svg string or svg as data url * @param html - HTML string * @param style - CSS string * @param width - width of the svg * @param height - height of the svg * @param toDataUrl - if true, returns a data url, otherwise returns the svg string * @returns svg string or svg as data url * * @category HTML To Image */ export declare function htmlToSvg(html: string, style: string, { width, height }: { width: number; height: number; }, toDataUrl?: boolean): string; /** * Renders an HTML string to a canvas. This is done by first embedding HTML into a svg and then rendering the svg to a canvas. * @param html - HTML string * @param style - CSS string * @param options - options for rendering the canvas * @returns HTML canvas element * * @category HTML To Image */ export declare function htmlToCanvas(html: string, style: string, options: ImageCanvasOptions): Promise; /** * Renders an HTML string to a png. This is done by first embedding HTML into a svg and then rendering the svg to a png. * @param html * @param style * @param options * @returns png as data url * * @category HTML To Image */ export declare function htmlToPng(html: string, style: string, options: ImageCanvasOptions): Promise; //# sourceMappingURL=htmlToImage.d.ts.map