import { Package } from "ooxml.js"; import { FontSubstitution, ProvidedFont, TreeEmbeddedFont } from "document-schema.js"; import { FontRegistry } from "pdf-codec"; import { Package as Package$1 } from "odf.js"; //#region src/fonts/registry.d.ts type FontSourcePackage = { readonly kind: "docx" | "pptx"; readonly package: Package; } | { readonly kind: "odf"; readonly package: Package$1; }; interface DocumentFontRegistryOptions { readonly fonts?: readonly ProvidedFont[]; readonly onFontSubstitution?: (substitution: FontSubstitution) => void; } declare function extractSourceFonts(source: FontSourcePackage): ProvidedFont[]; declare function treeEmbeddedFontsOf(source: FontSourcePackage): TreeEmbeddedFont[] | undefined; declare function createDocumentFontRegistry(source: FontSourcePackage, options?: DocumentFontRegistryOptions): FontRegistry; //#endregion export { treeEmbeddedFontsOf as a, extractSourceFonts as i, FontSourcePackage as n, createDocumentFontRegistry as r, DocumentFontRegistryOptions as t };