/// <reference types="react" />
import { CustomerSignIn, RequestError, RequestStatus } from '@open-tender/types';
export declare const useOneTimePasscodeForm: (otpSent: boolean, loading: RequestStatus, error: RequestError, includeRecaptcha: boolean | undefined, submit: (data: CustomerSignIn) => void, callback?: () => void) => {
    submitRef: import("react").MutableRefObject<HTMLButtonElement | null>;
    inputRef: import("react").MutableRefObject<HTMLInputElement | null>;
    recaptchaRef: import("react").MutableRefObject<any>;
    fields: import("@open-tender/types").FormFieldType[];
    data: {
        identifier: string;
        one_time_passcode: string;
    };
    errors: Record<string, string>;
    setErrors: import("react").Dispatch<import("react").SetStateAction<Record<string, string>>>;
    submitting: boolean;
    handleChange: (name: string, value: string | number | boolean) => void;
    handleSubmit: (evt?: React.FormEvent<HTMLFormElement>) => Promise<void>;
};
