import { LexicalEditor } from 'lexical';
type UseAiAssistantSelectionParams = {
    anchorElem: HTMLElement;
    editor: LexicalEditor;
};
export declare const useAiAssistantSelection: (params: UseAiAssistantSelectionParams) => {
    isMouseOver: boolean;
    setIsMouseOver: import('react').Dispatch<import('react').SetStateAction<boolean>>;
    isLink: boolean;
    isText: boolean;
    selection: string;
    updatePosition: () => void;
    selectionRect: DOMRect;
};
export {};
