import { Loss } from '../core/ir/index.js'; import { OpcPackage } from '../core/opc/index.js'; import { PoNode } from '../core/po-helpers.js'; import { FontRegistry } from '../core/font/index.js'; /** What an `fntdata` part turned out to hold. */ type FaceBytes = { readonly kind: 'font'; readonly bytes: Uint8Array; } | { readonly kind: 'compressed'; } | { readonly kind: 'unreadable'; }; /** * Read one `fntdata` part: the font itself when the container stores it * plainly, and what stopped it otherwise. * * @param data The part's bytes. */ export declare function readFntData(data: Uint8Array): FaceBytes; /** * §19.2.1.13 — the fonts a deck embeds, by normalized family name. * * @param pkg The opened `.pptx` package. * @param presPath The presentation part's path (relationships resolve from it). * @param pres Its parsed `p:presentation` element. * @param onLoss Where a face that cannot be unpacked records itself. * @returns The families whose faces were readable (empty when none were). */ export declare function loadPptxEmbeddedFonts(pkg: OpcPackage, presPath: string, pres: PoNode | undefined, onLoss: (loss: Loss) => void): Map; export {};