export * from '@polotno/core/measure-html';
import { FontConfig } from './css-optimizer.js';
export type ResolveRasterFont = (family: string) => FontConfig | undefined;
export declare const prerenderFont: (fontFamily: string) => Promise;
export declare function htmlToCanvas({ html, width, height, fontFamily, fontFamilies, padding, font, resolveFont, pixelRatio, }: {
html: string;
width: number;
height: number;
fontFamily: string;
fontFamilies?: string[];
padding: number;
font?: FontConfig;
resolveFont?: ResolveRasterFont;
skipCache?: boolean;
pixelRatio?: number;
}): Promise;