/** * Build the built-in toolbar font dropdown options for a bundled-font activation, DERIVED from the * shared font-offering registry (`@superdoc/font-system`). Without a configured pack this is the * conservative baseline; with one it is the curated rich set. * * Per `FontConfig`: `label` is the Word-facing logical name (stored on the selection + active-state * match), `key` is the logical CSS stack, and the row preview renders in the physical clone that * actually paints (e.g. Carlito), so the dropdown looks like the rendered result. * * @param {import('../../../../../../shared/font-system/src/index.js').BundledActivation} [activation] */ export function toolbarFontOptionsFor(activation?: import('../../../../../../shared/font-system/src/index.js').BundledActivation): { label: string; key: string; fontWeight: number; props: { style: { fontFamily: string; }; 'data-item': string; }; }[]; /** * The single seam that composes the font dropdown options: it turns the active document's * {@link import('../../../../../../shared/font-system/src/index.js').DocumentFontOption}s into toolbar font options, unions them * with the activation-gated built-in base (baseline without a configured pack, the curated rich set * with one), dedupes by normalized logical family, and sorts by visible name. A consumer-provided * `configFonts` list is returned unchanged. Returns `undefined` only when the base is the baseline and * there are no document fonts, so the caller can keep the equal static {@link TOOLBAR_FONTS} const. * * @param {ReadonlyArray} documentOptions * @param {Array} [configFonts] - the consumer's `fonts` config, if any * @param {import('../../../../../../shared/font-system/src/index.js').BundledActivation} [activation] - the document's bundled-font activation * @returns {Array|undefined} */ export function composeToolbarFontOptions(documentOptions: ReadonlyArray, configFonts?: any[], activation?: import('../../../../../../shared/font-system/src/index.js').BundledActivation): any[] | undefined; /** * Static baseline dropdown options (no pack configured). The fallback when a toolbar has no live * activation to build from; the live path uses {@link composeToolbarFontOptions} with the document's * activation so a configured pack shows the rich set. */ export const TOOLBAR_FONTS: { label: string; key: string; fontWeight: number; props: { style: { fontFamily: string; }; 'data-item': string; }; }[]; export const TOOLBAR_FONT_SIZES: { label: string; key: string; props: { 'data-item': string; }; }[]; export namespace RESPONSIVE_BREAKPOINTS { let sm: number; let md: number; let lg: number; let xl: number; } export namespace HEADLESS_ITEM_MAP { let undo: string; let redo: string; let bold: string; let italic: string; let underline: string; let strike: string; let acceptTrackedChangeBySelection: string; let rejectTrackedChangeOnSelection: string; let ruler: string; let formattingMarks: string; let zoom: string; let documentMode: string; let link: string; let fontFamily: string; let fontSize: string; let list: string; let numberedlist: string; let table: string; let image: string; let tableOfContents: string; let color: string; let highlight: string; let textAlign: string; let lineHeight: string; let linkedStyles: string; let indentleft: string; let indentright: string; let directionLtr: string; let directionRtl: string; let clearFormatting: string; let copyFormat: string; } export namespace TABLE_ACTION_COMMAND_MAP { let addRowBefore: string; let addRowAfter: string; let deleteRow: string; let addColumnBefore: string; let addColumnAfter: string; let deleteColumn: string; let deleteTable: string; let deleteCellAndTableBorders: string; let mergeCells: string; let splitCell: string; let fixTables: string; } export const TABLE_ACTION_COMMAND_IDS: string[]; export const HEADLESS_TOOLBAR_COMMANDS: string[]; export const HEADLESS_EXECUTE_ITEMS: Set; //# sourceMappingURL=constants.d.ts.map