/** * Copyright (c) 2019-present Houfeng * @author Houfeng */ import React from "react"; import { Editor, EditorState } from "draft-js"; import { ITextEditorProps } from "./ITextEditorProps"; import { ITextStyle } from "../Shape/ITextStyle"; import { ITextEditorState } from "./ITextEditorState"; export declare class TextEditor extends React.Component { state: ITextEditorState; static getDerivedStateFromProps(nextProps: ITextEditorProps, prevState: ITextEditorState): { value: EditorState; rawValue: any; }; updateState: (value: EditorState, eventless?: boolean) => void; onStateChange: (value: EditorState) => void; selectAll: () => void; cancelSelect: () => void; addStyle: (style: ITextStyle) => void; removeStyle: (cssProps: string[]) => void; resetTextStyle(cssProps: string[]): void; getStyle: (cssProps: string[]) => any; toggleStyle: (style: ITextStyle) => void; toggleBlock: (blockType: string) => void; onEditorClick: () => void; focusing: boolean; onFocus: () => boolean; onBlur: () => boolean; focus: () => void; blur: () => void; editor: Editor; setEditorRef: (ref: Editor) => Editor; render(): JSX.Element; }