import React from 'react'; import { RenderElementProps } from 'slate-react'; import type { RenderLeafProps, ToolbarControl, _RichTextNode } from '../types'; /** * Internal TextEditor implementation */ export declare type TextEditorProps = { testId?: string; initialValue: _RichTextNode[]; onBlur: (newValue: _RichTextNode[]) => void; isSelected: boolean; toolbarControls?: ToolbarControl[]; renderLeaf?: (props: RenderLeafProps) => JSX.Element; renderElement?: (props: RenderElementProps) => JSX.Element; }; /** * TextEditor wraps Slate editor and only fires up updates when focus is lost. * In between it uses internal state to store rich text value. */ export declare const TextEditor: React.ForwardRefExoticComponent>;