import * as React from "react"; import { type Editor } from "@tiptap/react"; export type RichTextEditorProps = Omit, "defaultValue" | "onChange"> & { value?: string; defaultValue?: string; onValueChange?: (value: string) => void; output?: "text" | "html"; placeholder?: string; editable?: boolean; autoFocus?: boolean; minHeight?: number; maxHeight?: number; maxLength?: number; toolbar?: boolean; stickyToolbar?: boolean; toolbarSize?: "compact" | "default"; features?: RichTextFeature[]; showCharacterCount?: boolean; showWordCount?: boolean; onLinkRequest?: (currentHref?: string) => string | null | undefined; labels?: { editor?: string; toolbar?: string; }; }; export type RichTextFeature = "history" | "bold" | "italic" | "strike" | "code" | "heading1" | "heading2" | "heading3" | "paragraph" | "bulletList" | "orderedList" | "blockquote" | "codeBlock" | "horizontalRule" | "link" | "clearFormatting"; declare function EditorToolbar({ editor, onLinkRequest, label, features, sticky, size }: { editor: Editor; onLinkRequest?: RichTextEditorProps["onLinkRequest"]; label: string; features?: RichTextFeature[]; sticky?: boolean; size?: "compact" | "default"; }): React.JSX.Element; declare function RichTextEditor(props: RichTextEditorProps): React.JSX.Element; export { EditorToolbar, RichTextEditor };