import { Plugin, PluginKey } from "prosemirror-state"; import { DecorationSet } from "prosemirror-view"; import type { EditorState } from "prosemirror-state"; import type { Editor } from "../../types.js"; interface BibliographyEntry { id: number; entry_key: string; author: string; title: string; year: string; source: string; entry: Record; } interface InlineReferenceState { active: boolean; from: number; query: string; selectedIndex: number; listActive: boolean; isEdit: boolean; referenceNodePos: number; bibList: BibliographyEntry[]; widgetId: string | undefined; cursorAtStart: boolean | undefined; decos: DecorationSet; } export declare const getInlineReferenceState: (state: EditorState) => any; export declare const setInlineReferenceState: (tr: { setMeta: (key: PluginKey, state: Partial) => unknown; }, state: Partial) => unknown; export declare const inlineReferencePlugin: (options: { editor: Editor; }) => Plugin; export {}; //# sourceMappingURL=plugin.d.ts.map