/** * pptxtojson 2.2+ emits embedded fonts as `{ name, fontFamily, blob }`, * not `string[]`. String APIs (`replace`, Google Fonts) must go through * {@link normalizePptxUsedFonts}; blob URLs must be registered as FontFace * so import does not crash and the packaged face actually paints. */ export type PptxUsedFontObject = { name?: string; fontFamily?: string; blob?: string; }; export type PptxUsedFont = string | PptxUsedFontObject; export type NormalizedPptxFont = { name: string; blob?: string; }; /** Pull a CSS family name out of a pptxtojson usedFonts entry (string or object). */ export declare function pptxUsedFontName(font: unknown): string; export declare function normalizePptxUsedFonts(usedFonts: readonly unknown[] | null | undefined): NormalizedPptxFont[]; /** * Split "Brygada 1918 Bold Italic" → family + FontFace descriptors so both * `font-family: "Brygada 1918 Bold"` and `font-family: "Brygada 1918"; font-weight: 700` * resolve to the embedded face. */ export declare function splitImportedFontFace(name: string): { family: string; weight?: string; style?: string; }; /** * Register pptxtojson embedded-font blob URLs as FontFace. Safe in Node * (no `document` / `FontFace`) and idempotent. */ export declare function registerEmbeddedFonts(usedFonts: readonly unknown[] | null | undefined): string[];