import BraftEditor, { BraftEditorProps, EditorState, HooksType } from 'braft-editor';
import 'braft-editor/dist/index.css';
import './index.less';
interface TagProps {
    id: number;
    fieldName: string;
    htmlValue: string;
}
interface IHooksType extends HooksType {
    'before-preview': (editorState: EditorState) => string;
}
interface Props extends Omit<BraftEditorProps, 'value' | 'defaultValue' | 'hooks' | 'onChange'> {
    value?: string;
    defaultValue?: string;
    maxLength?: number;
    className?: string;
    tagList?: TagProps[];
    hooks?: IHooksType;
    simple?: boolean;
    onChange?: (html: string, editorState: EditorState) => void;
}
declare const Editor: {
    (props: Props): JSX.Element;
    Preview: ({ html }: {
        html?: string | undefined;
    }) => JSX.Element;
    createEditorState: typeof BraftEditor.createEditorState;
};
export default Editor;
