declare module '@wangeditor/editor-for-vue' {
  import { DefineComponent } from 'vue'
  import { IDomEditor, IEditorConfig, IToolbarConfig } from '@wangeditor/editor'

  export const Editor: DefineComponent<{
    modelValue?: string
    defaultConfig?: Partial<IEditorConfig>
    mode?: 'default' | 'simple'
    defaultHtml?: string
    defaultContent?: any[]
  }, {}, {}, {}, {}, {}, {}, {
    onCreated: (editor: IDomEditor) => void
    onChange: (editor: IDomEditor) => void
    onDestroyed: (editor: IDomEditor) => void
    onFocus: (editor: IDomEditor) => void
    onBlur: (editor: IDomEditor) => void
    customAlert: (info: string, type: string) => void
    customPaste: (editor: IDomEditor, event: ClipboardEvent) => boolean
  }>

  export const Toolbar: DefineComponent<{
    editor?: IDomEditor
    defaultConfig?: Partial<IToolbarConfig>
    mode?: 'default' | 'simple'
  }>
}
