export declare const QUILL_FONT_CLASS_TO_FAMILY: Record; export declare const QUILL_SIZE_CLASS_TO_EM: Record; export declare function guessFontFamilyFromQlClass(className: string): string; export declare function qlClassToFontFamilyName(className: string): string; export declare function parsePrimaryFontFamily(css: string): string | null; export declare function parseFontSizeToPx(css: string | undefined, baseFontPx: number): number | undefined; export declare function toNumericWeight(value: string | number | null | undefined): number; export declare function isBoldWeight(value: string | number | null | undefined): boolean; export declare function parseHtmlRoot(html: string): HTMLElement | null; export interface RichTextDefaults { fontSize: number; fontFamily: string; } export declare function cleanupInlineWrappers(root: HTMLElement): void; export declare function normalizeRichTextHtml(html: string, defaults: RichTextDefaults): string; export declare function extractFontFamiliesFromHtml(html: string): string[]; /** * Multiplies every inline `font-size` (`px` or `em`) in the rich-text HTML by * `factor`, preserving the ratio between spans. Used by shrink-to-fit (the * editor canvas and the exporters' `textOverflow: 'change-font-size'` paths), * and the public escape hatch for proportionally resizing mixed sizes: * `el.set({ fontSize, text: scaleRichTextFontSizesInHtml(el.text, factor) })`. * * Returns the input unchanged when `factor === 1`, when `factor` is non-finite * or non-positive, or when the HTML contains no inline sizes. * * @public */ export declare function scaleRichTextFontSizesInHtml(html: string, factor: number): string; /** True when any element in the HTML carries an inline `font-size`. Fitting * loops branch on this: mixed-size text must shrink via a uniform factor * (element base AND inline spans together), not by element fontSize alone. */ export declare function hasAnyInlineFontSize(html: string): boolean; export declare function collectUsedFontFamilies(design: { pages?: unknown[]; }): string[]; export interface FontSpec { family: string; weight: string; style: string; } export declare function extractFontSpecsFromHtml(html: string, defaults: { fontFamily: string; fontWeight: string | number; fontStyle: string; }): FontSpec[];