/**
 * 富文本编辑器
 * @author 施阳  2020-10-15
 * 具体api参考  https://braft.margox.cn/
 */
import React from 'react';
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, className, style }: {
        html?: string | undefined;
        className?: string | undefined;
        style?: React.CSSProperties | undefined;
    }) => JSX.Element;
    createEditorState: typeof BraftEditor.createEditorState;
};
export default Editor;
