import { Extension, type Editor } from '@tiptap/core'; import { type EditorState } from '@tiptap/pm/state'; /** Whether the menu is open, for an editor's own Escape: while it is, Escape closes it rather than leaving. */ export declare function isReferenceMenuOpen(state: EditorState): boolean; /** * A click on the chip at `pos`, from its node view: while editing, with the * menu installed, it opens the menu, and the caller stops the click there. * Returns false when the click should go on to the chip. */ export declare function referenceMenuClick(editor: Editor, pos: number): boolean; /** Which chip the menu is open on: see the module comment. */ export declare const ReferenceMenu: Extension; export interface ReferenceMenuViewProps { editor: Editor | null; } /** The menu `ReferenceMenu` holds, hung under its chip. Render it always, beside `EditorContent`. */ export declare function ReferenceMenuView({ editor }: ReferenceMenuViewProps): import("react").JSX.Element; //# sourceMappingURL=ReferenceMenu.d.ts.map