import type React from "react";
import { EditContextType } from "../client/editContext";
import { Field } from "../pageModel";
type TextCompletionControl = HTMLInputElement | HTMLTextAreaElement;
type UseTextCompletionOptions = {
    editContext: EditContextType | undefined;
    field: Field;
    inputRef: React.RefObject<TextCompletionControl | null>;
    readOnly?: boolean;
    value: string;
    setValue: (value: string) => void;
    updateValue: (value: string) => void;
};
export declare function useTextCompletion({ editContext, field, inputRef, readOnly, value, setValue, updateValue, }: UseTextCompletionOptions): {
    completion: string;
    isLoadingCompletion: boolean;
    clearCompletion: () => void;
    handleCompletionKeyDown: (event: React.KeyboardEvent<TextCompletionControl>) => boolean;
};
export {};
