export type JSONContent = { type?: string; attrs?: Record; content?: JSONContent[]; marks?: { type?: string; attrs?: Record; [key: string]: unknown; }[]; text?: string; [key: string]: unknown; }; export type SanitizeSchema = { nodes: Record; marks: Record; }; export type SanitizeResult = { content: JSONContent; unknownNodeTypes: string[]; unknownMarkTypes: string[]; }; /** * Removes node and mark types the schema doesn't define, so the document can be parsed instead of * throwing. An unknown leaf disappears, an unknown container is replaced by its children, an unknown * mark is dropped while its text stays. Never throws: stored JSON is untrusted. */ export declare function stripUnknownContent(content: JSONContent, schema: SanitizeSchema): SanitizeResult;