import * as React from 'react'; import { Editor, Plugin } from 'slate-react'; import { Value } from 'slate'; import { IEditable, UuiContexts, IHasCX, IHasRawProps } from '@epam/uui-core'; export declare const slateEditorEmptyValue: any; export declare const defaultPlugins: any[]; export declare const basePlugins: any[]; interface SlateEditorProps extends IEditable, IHasCX, IHasRawProps> { isReadonly?: boolean; plugins?: Plugin[]; autoFocus?: boolean; minHeight?: number | 'none'; placeholder?: string; mode?: 'form' | 'inline'; fontSize?: '14' | '16'; onKeyDown?: (event: KeyboardEvent, value: Editor['value'] | null) => void; onBlur?: (event: FocusEvent, value: Editor['value'] | null) => void; scrollbars?: boolean; } interface SlateEditorState { inFocus?: boolean; } export declare class SlateEditor extends React.Component { editor: Editor; static contextType: React.Context>; context: UuiContexts; serializer: any; state: { inFocus: boolean; }; onPaste: (event: any, editor: Editor, next: () => any) => any; onKeyDown: (event: KeyboardEvent, editor: Editor, next: () => any) => any; isEmpty: () => boolean; onChange: (props: any) => void; onBlur: (e: any, editor: Editor, next: () => any) => any; onFocus: (e: any, editor: Editor, next: () => any) => any; renderEditor: () => JSX.Element; render(): JSX.Element; } export {}; //# sourceMappingURL=SlateEditor.d.ts.map