import type { jsPDF as JsPdf } from 'jspdf'; export interface WorkPdfCjkFontRegistration { /** Logical PDF font family name registered with jsPDF. */ family: string; /** Base64-encoded TrueType font bytes (no data: URI prefix). */ base64: string; /** VFS file name passed to jsPDF addFileToVFS / addFont. */ vfsName: string; } /** * Registers an optional host-supplied CJK TrueType face for Writer PDF export. * Without a registration, searchable vector text stays Latin/Latin-1 only. * Call {@link clearWorkPdfCjkFont} in tests after use. */ export declare function registerWorkPdfCjkFont(options: { data: ArrayBuffer | Uint8Array | string; family?: string; vfsName?: string; }): WorkPdfCjkFontRegistration; export declare function clearWorkPdfCjkFont(): void; export declare function workPdfCjkFontRegistration(): WorkPdfCjkFontRegistration | null; export declare function workPdfCjkFontRegistered(): boolean; /** * Ensures the registered CJK face is present on a jsPDF document once. * Returns the family name when available, otherwise null. */ export declare function ensureWorkPdfCjkFontOnDocument(pdf: JsPdf): string | null; export declare function workPdfTextNeedsCjkFont(text: string): boolean;