import type { PdfSpec, ToolFont } from './pdfSpec.js'; /** * A group of custom fonts, as the editor takes them in its font list * (`{ label, options }`); groups can nest. */ export interface CustomFontGroup { label: string; options: (ToolFont | CustomFontGroup)[]; } /** * The fonts with a stylesheet that the spec's font stacks name, for * renderPdf's `fonts` option: the editor's built-in web fonts, then the * caller's `customFonts`, then fonts the design stores with a stylesheet * (its `fontFamily` values), each overriding a font of the same name before * it, as the editor's custom fonts override its built-in ones. Fonts nothing * names are left out; system fonts have no stylesheet, and renderPdf draws * them with open fonts of the same metrics. */ export declare function specFonts(spec: PdfSpec, design: unknown, customFonts?: readonly (ToolFont | CustomFontGroup)[]): ToolFont[];