import { Editor as CoreEditor } from '@tiptap/core'; import { Editor } from '../../lib/vue-3'; import { EditorState } from '@tiptap/pm/state'; import { EditorView } from '@tiptap/pm/view'; export interface MenuProps { editor: Editor; appendTo?: any; shouldHide?: boolean; } export interface ShouldShowProps { editor?: CoreEditor; view: EditorView; state?: EditorState; oldState?: EditorState; from?: number; to?: number; }