import type { RichTextFeatures, RichTextPreset } from './types.js'; /** * Per-preset DOMPurify configuration. This is the single source of truth for * what HTML is allowed to enter the editor (on paste), leave it (on output), * and be rendered by the viewer. * * NOTE: this module intentionally has NO Tiptap/ProseMirror import so the * viewer (and any HTML-only consumer) can sanitize without pulling the editor * engine into its bundle. */ type SanitizeConfig = { ALLOWED_TAGS: string[]; ALLOWED_ATTR: string[]; ALLOW_DATA_ATTR?: boolean; }; export declare const SANITIZE_CONFIGS: Record; /** * `