import { type RefObject } from "react";
import { type CompletionSource } from "@codemirror/autocomplete";
import { type EditorView, ViewPlugin } from "@codemirror/view";
export declare function useAutocompletion({ handleCompletion, aboveCursor, whenTyping, activateOnTypingDelay }: {
    handleCompletion: RefObject<CompletionSource | undefined>;
    aboveCursor?: boolean;
    whenTyping?: boolean;
    activateOnTypingDelay?: number;
}): {
    autocompletionExtension: import("@codemirror/state").Extension;
    autocompleteHoverExtension: ViewPlugin<{
        readonly view: EditorView;
        attachMouseListeners(): void;
        onMouseMove: (event: MouseEvent) => void;
        destroy(): void;
    }, undefined>;
};
//# sourceMappingURL=useAutocompletion.d.ts.map