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