/** * @description create * @author wangfupeng */ import { Descendant } from 'slate'; import { DOMElement } from './utils/dom'; import { IEditorConfig, IDomEditor, IToolbarConfig, Toolbar } from '@wangeditor-next/core'; export interface ICreateEditorOption { selector: string | DOMElement; config: Partial; content?: Descendant[]; html?: string; mode: string; } export interface ICreateToolbarOption { editor: IDomEditor | null; selector: string | DOMElement; config?: Partial; mode?: string; } /** * 创建 editor 实例 */ export declare function createEditor(option?: Partial): IDomEditor; /** * 创建 toolbar 实例 */ export declare function createToolbar(option: ICreateToolbarOption): Toolbar;