/** * RevealUI Rich Text Editor - React Client Components * * Provides client-side rendering components for Lexical content. * Converts Lexical JSON state to React elements without requiring a server. */ import type { SerializedLinkNode } from '@lexical/link'; import { type SerializedEditorState, type SerializedLexicalNode } from 'lexical'; import { type JSX } from 'react'; interface SerializedBlockNode extends SerializedLexicalNode { type: 'block'; fields?: Record; } export interface ClientSerializeOptions { renderBlock?: (node: SerializedBlockNode, index: number) => JSX.Element | null; renderLink?: (node: SerializedLinkNode, children: JSX.Element | null, index: number) => JSX.Element; renderImage?: (data: { src?: string; alt?: string; width?: number; height?: number; caption?: string; }, index: number) => JSX.Element | null; } /** * Serialize a Lexical editor state to React elements (client-side) */ export declare function serializeLexicalStateClient(data: SerializedEditorState | null | undefined, options?: ClientSerializeOptions): JSX.Element | null; /** * Client-side RichText rendering component */ export declare function RichTextContent({ data, className, ...options }: { data: SerializedEditorState | null | undefined; className?: string; } & ClientSerializeOptions): JSX.Element | null; export {}; //# sourceMappingURL=rcc.d.ts.map