import { Plugin, PluginKey } from 'prosemirror-state'; import type { EditorView } from 'prosemirror-view'; import { DecorationSet } from 'prosemirror-view'; export interface CommentState { decorations: DecorationSet; } export declare const key: PluginKey; interface CommentAddAction { type: 'add'; commentId: string; } interface CommentRemoveAction { type: 'remove'; commentId: string; } declare type CommentAction = CommentAddAction | CommentRemoveAction; export declare function dispatchCommentAction(view: EditorView, action: CommentAction): void; declare const getCommentsPlugin: () => Plugin; export default getCommentsPlugin;