import type { Editor } from '@tiptap/core'; import { type WorkDocumentScriptFontPatch } from '../work-document-script-fonts'; import { type WorkDocumentOpenTypeFeaturePatch } from '../work-document-opentype'; export interface DocumentFontFamilySource { mixed: boolean; value: string | null; } export interface DocumentFontDialogScriptFontPatch { latinFont?: string | null; eastAsiaFont?: string | null; complexScriptFont?: string | null; } export declare function documentFontFamilyDraftValue(source: DocumentFontFamilySource): string; export declare function appendDocumentFontDialogScriptFontPatch(patch: DocumentFontDialogScriptFontPatch, key: keyof DocumentFontDialogScriptFontPatch, source: DocumentFontFamilySource, draft: string, touched: boolean): void; export declare function addDocumentScriptFontValues(latin: Map, eastAsia: Map, complexScript: Map, attributes: Record): void; export declare function applyDocumentScriptFontPatch(editor: Editor, selection: { from: number; to: number; }, scalarPatch: Readonly>, scriptFontPatch: WorkDocumentScriptFontPatch): boolean; export declare function applyDocumentTextStylePatch(editor: Editor, selection: { from: number; to: number; }, scalarPatch: Readonly>, scriptFontPatch: WorkDocumentScriptFontPatch, openTypePatch: WorkDocumentOpenTypeFeaturePatch): boolean;