export declare function useField<T>(initialValue: T, options?: {
    validate?: (value: T) => string | null;
}): {
    value: T;
    error: string | null;
    touched: boolean;
    onChange: (value: T) => void;
    onBlur: () => void;
    setValue: (value: T) => void;
    setTouched: (touched: boolean) => void;
};
