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