import { Editor, EditorState, DraftHandleValue } from 'draft-js'; import * as React from 'react'; import { IEditable, IHasCX, ICanBeReadonly } from '@epam/uui-core'; import { ToolbarButton } from './types'; export type RichTextEditorBindingProps = (RawRichTextEditorProps | HtmlRichTextEditorProps | MarkdownRichTextEditorProps); export type HtmlRichTextEditorProps = { valueType: 'html'; } & IEditable; export type MarkdownRichTextEditorProps = { valueType: 'markdown'; } & IEditable; export type RawRichTextEditorProps = { valueType: 'raw'; } & IEditable; export type RichTextEditorProps = { structure?: ToolbarButton[]; customClass?: string; placeholder?: string; } & IHasCX & ICanBeReadonly & RichTextEditorBindingProps; export declare class RichTextEditor extends React.Component { editor: Editor; private currentValue; private editorState; getStateFromProps(props: RichTextEditorProps): EditorState; componentDidUpdate(prevProps: Readonly, prevState: Readonly<{}>, snapshot?: any): void; handleChange: (editorState: EditorState) => void; handleKeyCommand: (command: string, editorState: EditorState) => DraftHandleValue; createWithContent(value: string): EditorState; createEmpty(): EditorState; focus: () => void; imageBlockRenderer: (block: any) => { component: (props: any) => JSX.Element; editable: boolean; }; protected renderEditor(): JSX.Element; render(): JSX.Element; } //# sourceMappingURL=RichTextEditor.d.ts.map