import { Plugin, PluginKey } from 'prosemirror-state'; import { DecorationAttrs, EditorView } from 'prosemirror-view'; import { Types } from '../../libs'; interface IDecoType { ADD: 'add'; REMOVE: 'remove'; APPEND_NODE: 'appendNode'; APPEND_INLINE: 'appendInline'; } interface IDecoState { action: Types.ValueOf; dom?: HTMLElement; data: { pos?: number; from?: number; to?: number; attrs?: DecorationAttrs; shadow?: (dom: HTMLElement, view: EditorView, getPos: () => number) => HTMLElement; spec: { key: string; onRemove?: () => void; [k: string]: any; }; }; } declare const DECO_TYPE: IDecoType; declare const DecoKey: PluginKey; declare const DecorationPlugin: () => Plugin; export { DECO_TYPE, DecoKey, DecorationPlugin, IDecoState };