import { Model } from '@topwrite/common'; import { Editor as SlateEditor } from 'slate'; import PlatePlugin, { Decorate } from '../components/editor/plate-plugin'; interface EditorType { plugins: Map; decorates: Map; instance: SlateEditor | null; } declare class Editor extends Model { initialState: { plugins: Map; decorates: Map; instance: null; }; setInstance(instance: SlateEditor | null): Generator; addPlugin(plugin: PlatePlugin): Generator; removePlugin(plugin: PlatePlugin): Generator; addDecorate(decorate: Decorate): Generator; removeDecorate(decorate: Decorate): Generator; } export declare const editor: Editor; export {};