export type FileViewerRtfExternalPolicy = 'allow' | 'block'; export interface FileViewerRtfSanitizeOptions { externalLinkPolicy?: FileViewerRtfExternalPolicy; externalResourcePolicy?: FileViewerRtfExternalPolicy; } /** * Canonicalizes an RTF field hyperlink through the same policy used by DOC. * Word's `HYPERLINK \\l "bookmark"` field syntax is converted to a fragment * before external navigation is considered, so bookmarks remain available * even when the default external-link policy is `block`. */ export declare const sanitizeFileViewerRtfHyperlink: (value: string, policy?: FileViewerRtfExternalPolicy) => string | null; export declare const isSafeFileViewerRtfHyperlink: (value: string, policy?: FileViewerRtfExternalPolicy) => boolean; export declare const createFileViewerRtfHyperlinkContainer: (documentRef: Document, create: () => HTMLElement, hyperlink: { url: () => string; }, policy?: FileViewerRtfExternalPolicy) => { element: HTMLSpanElement; content: HTMLSpanElement; }; export declare const sanitizeFileViewerRtfElement: (documentRef: Document, element: HTMLElement, options?: FileViewerRtfSanitizeOptions) => DocumentFragment; /** * Safe serialization boundary for integrations that consume renderer markup * directly instead of mounting through the standard File Viewer handler. */ export declare const sanitizeFileViewerRtfHtml: (documentRef: Document, markup: string, options?: FileViewerRtfSanitizeOptions) => string;