import { Extension } from '@tiptap/react'; export type RichTextToolbarControl = "bold" | "italic" | "strike" | "h2" | "h3" | "bulletList" | "orderedList" | "link" | "blockquote" | "code" | "undo" | "redo" | "divider"; export interface RichTextEditorProps { /** Controlled HTML string. */ value: string; /** Fires with the editor's HTML on every edit. */ onChange: (html: string) => void; /** Placeholder shown while the document is empty (@tiptap/extension-placeholder). */ placeholder?: string; /** Renders the content non-editable (real `editable:false`, not a preview clone). */ readOnly?: boolean; /** Disables editing + all toolbar controls, dimmed. */ disabled?: boolean; autoFocus?: boolean; /** Min height of the editable area. Default `"160px"`. */ minHeight?: string; id?: string; /** Accessible name for the editable region. */ ariaLabel?: string; /** Error text rendered under the editor (token-styled). */ error?: string; className?: string; /** Ordered toolbar controls, or `false` for no toolbar. Defaults to the standard set. */ toolbar?: RichTextToolbarControl[] | false; /** Extra TipTap extensions appended after the built-ins. */ extensions?: Extension[]; /** Options forwarded to `StarterKit.configure`. */ starterKitOptions?: Record; /** Options forwarded to `Link.configure` (default `{ openOnClick: false }`). */ linkOptions?: Record; /** aria-label / tooltip overrides per toolbar control. */ labels?: Partial>; } export declare function RichTextEditor({ value, onChange, placeholder, readOnly, disabled, autoFocus, minHeight, id, ariaLabel, error, className, toolbar, extensions, starterKitOptions, linkOptions, labels, }: RichTextEditorProps): import("react").JSX.Element; //# sourceMappingURL=RichTextEditor.d.ts.map