import { VerifyPhoneNumberForm } from "../../../../storefront-models/src"; /** * Initializes the phone number verification form with default field values and sets the step to "Enter Phone Number". * * @ai-category Validation, PhoneVerification, Form * @ai-related setVerifyPhoneNumberFormCode, submitVerifyPhoneNumberForm, resendVerifyPhoneNumberFormCode * * @param verifyPhoneNumberForm - The phone number verification form object to initialize * @returns void * * @example * ```typescript * import { initVerifyPhoneNumberForm } from "@ikas/bp-storefront"; * initVerifyPhoneNumberForm(verifyPhoneNumberForm); * ``` */ export declare function initVerifyPhoneNumberForm(verifyPhoneNumberForm: VerifyPhoneNumberForm): void; /** * Sets the verification code field value on the phone number verification form and re-validates if the form has been submitted. * * @ai-category Validation, PhoneVerification, Form * @ai-related initVerifyPhoneNumberForm, submitVerifyPhoneNumberForm, resendVerifyPhoneNumberFormCode * * @param verifyPhoneNumberForm - The phone number verification form object to update * @param value - The verification code string to set * @returns void * * @example * ```typescript * import { setVerifyPhoneNumberFormCode } from "@ikas/bp-storefront"; * setVerifyPhoneNumberFormCode(verifyPhoneNumberForm, "123456"); * ``` */ export declare function setVerifyPhoneNumberFormCode(verifyPhoneNumberForm: VerifyPhoneNumberForm, value: string): void; /** * Validates and submits the phone number verification form, handling the multi-step flow of sending a code and then verifying it. * * @ai-category Validation, PhoneVerification, Form * @ai-related initVerifyPhoneNumberForm, setVerifyPhoneNumberFormCode, resendVerifyPhoneNumberFormCode * * @param verifyPhoneNumberForm - The phone number verification form object to validate and submit * @returns A promise that resolves to true if the current step completed successfully, or false if validation failed or the API returned an error * * @example * ```typescript * import { submitVerifyPhoneNumberForm } from "@ikas/bp-storefront"; * const success = await submitVerifyPhoneNumberForm(verifyPhoneNumberForm); * if (success) { * console.log("Step completed successfully"); * } * ``` */ export declare function submitVerifyPhoneNumberForm(verifyPhoneNumberForm: VerifyPhoneNumberForm): Promise; /** * Resends the phone verification code if the form is currently in the "Verify Code" step. * * @ai-category Validation, PhoneVerification, Form * @ai-related initVerifyPhoneNumberForm, setVerifyPhoneNumberFormCode, submitVerifyPhoneNumberForm * * @param verifyPhoneNumberForm - The phone number verification form object * @returns A promise that resolves when the code has been resent, or returns immediately if not in the correct step * * @example * ```typescript * import { resendVerifyPhoneNumberFormCode } from "@ikas/bp-storefront"; * await resendVerifyPhoneNumberFormCode(verifyPhoneNumberForm); * ``` */ export declare function resendVerifyPhoneNumberFormCode(verifyPhoneNumberForm: VerifyPhoneNumberForm): Promise;