import type { RefObject } from "react";
import type { Field } from "../pageModel";
type TextFormControl = HTMLInputElement | HTMLTextAreaElement;
export declare function useFormFieldCaretPresence({ field, inputRef, readOnly, }: {
    field: Field;
    inputRef: RefObject<TextFormControl | null>;
    readOnly?: boolean;
}): {
    clearCaretPresence: () => void;
    publishCaretPresence: (element?: TextFormControl | null) => void;
    publishCaretPresenceAfterSelectionSettles: (element?: TextFormControl | null) => void;
};
export {};
