import { Klass, LexicalCommand, LexicalEditor, LexicalNode } from 'lexical'; import { EntityLinkNode, EntityLinkPayload } from './node'; import { EntityLinkItem, EntityLinkPickerState } from './types'; export type EntityLinkCommandPayload = EntityLinkItem | 'inline' | undefined; export interface EntityLinkBehaviourOptions { command: LexicalCommand; nodeKlass: Klass; $create: (payload: EntityLinkPayload) => EntityLinkNode; $is: (node: LexicalNode | null | undefined) => node is EntityLinkNode; items: EntityLinkItem[]; syncItems?: EntityLinkItem[]; excludeId?: string; disable?: boolean; loading?: boolean; anchorAttr: string; pluginName: string; $getCurrentElement: () => LexicalNode | null; scrollLock?: { lock: () => void; unlock: () => void; }; } export declare function useEntityLinkBehaviour(editor: LexicalEditor, options: EntityLinkBehaviourOptions): EntityLinkPickerState; //# sourceMappingURL=useEntityLinkBehaviour.d.ts.map