import { EditorState } from 'prosemirror-state'; import { Decoration, EditorView } from 'prosemirror-view'; import { IDecoState } from '../basic/decoration'; import { Types } from '../libs'; declare const getShadows: (state: EditorState, key?: string | ((spec: Types.StringMap) => boolean) | undefined, start?: number | undefined, end?: number | undefined) => Decoration<{ [key: string]: any; }>[]; declare const insertShadow: (state: EditorState, dispatch: EditorView['dispatch'], data: IDecoState['data'] & { editable?: boolean; }, inline: boolean) => void; declare const removeShadow: (state: EditorState, dispatch: EditorView['dispatch'], key: string) => { spec: { [key: string]: any; }; from: number; to: number; } | undefined; declare const appendShadow: (state: EditorState, dispatch: EditorView['dispatch'], data: IDecoState['data'], inline: boolean) => void; export { appendShadow, getShadows, insertShadow, removeShadow };