import { FocusEventHandler, ReactNode } from 'react';
import { Descendant } from 'slate';
export type RichTextEditorProps = {
    value?: Descendant[];
    onChange: (value: Descendant[]) => void;
    onFocus?: FocusEventHandler<HTMLDivElement>;
    onBlur?: FocusEventHandler<HTMLDivElement>;
    placeholder?: string;
    isDisabled?: boolean;
    isReadOnly?: boolean;
    autoFocus?: boolean;
    toolbar?: ReactNode;
    /**
     * React ref to be forwarded to the editor
     */
    ref?: React.Ref<RichTextEditorRef>;
};
export type RichTextEditorRef = {
    focus: () => void;
    resetValue: (html: string) => void;
};
export declare const RichTextEditor: {
    ({ ref: forwardedRef, value, onChange, onFocus, onBlur, placeholder, isDisabled, isReadOnly, autoFocus, toolbar, }: RichTextEditorProps): import("react/jsx-runtime").JSX.Element;
    displayName: string;
};
