import { Extension } from '@tiptap/core';
import { CitationBubbleMenuProps } from './CitationMenu/CitationBubbleMenu';
declare module '@tiptap/core' {
    interface Commands<ReturnType> {
        citation: {
            /**
             * Open/show the link bubble menu. Create a link if one doesn't exist at
             * the current cursor selection, or edit the existing link if there is
             * already a link at the current selection.
             *
             * If the options are provided, they're used to override the bubble menu
             * props, which can be useful for specific positioning needs. Each call to
             * `openLinkBubbleMenu` will reset the options based on the provided
             * argument, falling back to default behavior if not provided.
             *
             * For instance, if the anchorEl option is provided, it overrides the
             * anchor point for positioning the bubble menu. (The default anchorEl for
             * LinkBubbleMenu is to anchor to the location in the editor content where
             * the link appears or will appear.)
             */
            openCitationBubbleMenu: (options?: Partial<CitationBubbleMenuProps>, selectedNodePos?: number) => ReturnType;
            /** Close/hide the link bubble menu, canceling any ongoing edits. */
            closeCitationBubbleMenu: () => ReturnType;
        };
    }
}
export type CitationBubbleMenuHandlerStorage = {
    isOpen: boolean;
    selectedIds: number[];
    bubbleMenuOptions: Partial<CitationBubbleMenuProps> | undefined;
    selectedNodePos: number | undefined;
};
/**
 * To be used in conjunction with the `CitationBubbleMenuTipTap` component, as this
 * extension provides editor commands to control the state of the link bubble
 * menu.
 *
 * The Tiptap Link extension (@tiptap/extension-link) should also be installed
 * and included in your extensions when using CitationBubbleMenuHandler:
 * https://tiptap.dev/api/marks/link.
 */
declare const CitationBubbleMenuHandler: Extension<undefined, CitationBubbleMenuHandlerStorage>;
export default CitationBubbleMenuHandler;
