export interface SanitizeRichtextOptions { /** Extra tags to permit, on top of the defaults. */ allowedTags?: readonly string[]; /** Extra attributes to permit, on top of the defaults. */ allowedAttrs?: readonly string[]; } /** * Sanitize a richtext HTML string for rendering. * * `options` is additive only. Entries in `allowedTags`/`allowedAttrs` are * merged on top of the defaults; nothing can remove a default, narrow the * link-protocol allowlist, or introduce a tag or attribute that would let * stored content run script. Values that would do so are dropped rather than * throwing, so a bad option can't take down a published page. * * @param html Stored richtext HTML. * @param options Additive allowlist extensions. * @returns Sanitized HTML, safe to pass to `dangerouslySetInnerHTML`. */ export declare function sanitizeRichtextHtml(html: string, options?: SanitizeRichtextOptions): string;