/** Size of rendered math markup at a font size, in CSS pixels. */ export type MeasureMath = (html: string, size: number) => { width: number; height: number; } | null; export interface RenderChartOptions { idPrefix: string; fontFamily?: string; measure: MeasureMath; } export interface RenderedChart { inline: string; zoomed: string; } /** * Renders a chart's inline SVG and its full-screen copy with distinct element * IDs. KaTeX loads only for charts that contain `$$`. */ export declare function renderChart(chart: string, { idPrefix, fontFamily, measure }: RenderChartOptions): Promise; /** Measures math markup in a hidden probe inside `host`, inheriting its fonts. */ export declare function measureIn(host: HTMLElement): MeasureMath; //# sourceMappingURL=render-chart.d.ts.map