import { type SanitizeFeatures } from './sanitizer.js'; import type { RichTextPreset } from './types.js'; /** ProseMirror JSON → sanitized HTML for the given preset (+ feature overrides). */ export declare function jsonToHtml(doc: object | null, preset?: RichTextPreset, features?: SanitizeFeatures): string; /** HTML string → ProseMirror JSON (tolerant; unknown nodes are dropped by the schema). */ export declare function htmlToJson(html: string | null, preset?: RichTextPreset, features?: SanitizeFeatures): object; /** * ProseMirror JSON → plain text. Walks the document directly (no engine), so * it stays cheap and dependency-light. Block nodes are separated by newlines. */ export declare function jsonToText(doc: object | null): string; //# sourceMappingURL=serializers.d.ts.map