/**
 * @file RichTextView.tsx
 * @input Uses React, Lexical (lexical + @lexical/react), design tokens
 * @output Exports RichTextView component and RichTextViewProps
 * @position Read-only renderer for serialized Lexical editor state; experimental
 *   (lab), re-exported from @astryxdesign/lab
 *
 * SYNC: When modified, update these files to stay in sync:
 * - /packages/lab/src/RichTextEditor/RichTextView.test.tsx
 * - /packages/lab/src/RichTextEditor/index.ts
 * - /packages/lab/src/index.ts (barrel re-export)
 * - /apps/storybook/stories/RichTextEditor.stories.tsx
 */
import { type ReactNode } from 'react';
import type { BaseProps } from '@astryxdesign/core';
import type { Klass, LexicalNode } from 'lexical';
export interface RichTextViewProps extends BaseProps {
    /**
     * Serialized editor state to render (a JSON string produced by
     * `JSON.stringify(editorState.toJSON())`).
     */
    value: string;
    /**
     * Additional Lexical nodes to register beyond the default OSS set. Must match
     * the nodes used to author `value` so custom node types deserialize.
     */
    nodes?: ReadonlyArray<Klass<LexicalNode>>;
    /**
     * Additional read-only plugins to render inside the composer (e.g. hover
     * cards, decorators).
     */
    plugins?: ReactNode;
    /** The Lexical composer namespace. @default 'astryx-view' */
    namespace?: string;
    /**
     * Called when `value` cannot be parsed/rendered (e.g. malformed JSON, or
     * state authored with node types not registered via `nodes`). A read-only
     * view renders *persisted* content — exactly where stale or foreign-schema
     * state shows up — so by default a parse failure renders `errorFallback`
     * instead of throwing and taking down the host. Provide `onParseError` to log or
     * report it.
     */
    onParseError?: (error: Error) => void;
    /**
     * What to render when `value` fails to parse/render. Defaults to `null`
     * (renders nothing). Pass a node to show a placeholder/empty state.
     * @default null
     */
    errorFallback?: ReactNode;
}
/**
 * A read-only renderer for serialized Lexical content. Renders the same styled
 * output as {@link RichTextEditor} without any editing affordances.
 *
 * @example
 * ```
 * import {RichTextView} from '@astryxdesign/lab';
 * <RichTextView value={storedEditorStateJSON} />
 * ```
 */
export declare function RichTextView({ value, nodes, plugins, namespace, onParseError, errorFallback, xstyle, className, style, ...rest }: RichTextViewProps): import("react").JSX.Element;
export declare namespace RichTextView {
    var displayName: string;
}
//# sourceMappingURL=RichTextView.d.ts.map