/**
 * @description editor react component
 * @author wangfupeng
 */
import type { IDomEditor, IEditorConfig } from '@wangeditor-next/editor';
import { SlateDescendant } from '@wangeditor-next/editor';
import React from 'react';
interface IProps {
    defaultContent?: SlateDescendant[];
    onCreated?: (editor: IDomEditor) => void;
    defaultHtml?: string;
    value?: string;
    onChange: (editor: IDomEditor) => void;
    defaultConfig: Partial<IEditorConfig>;
    mode?: string;
    style?: React.CSSProperties;
    className?: string;
    loading?: boolean;
    loadingText?: React.ReactNode;
}
declare function EditorComponent(props: Partial<IProps>): React.JSX.Element;
export default EditorComponent;
