import { RecoverPasswordForm } from "../../../../storefront-models/src"; /** * Initializes the recover password form with default field values for password and password confirmation, and resets submission state. * * @ai-category Validation, RecoverPassword, Form * @ai-related setRecoverPasswordFormPassword, setRecoverPasswordFormPasswordAgain, submitRecoverPasswordForm * * @param recoverPasswordForm - The recover password form object to initialize * @returns void * * @example * ```typescript * import { initRecoverPasswordForm } from "@ikas/bp-storefront"; * initRecoverPasswordForm(recoverPasswordForm); * ``` */ export declare function initRecoverPasswordForm(recoverPasswordForm: RecoverPasswordForm): void; /** * Sets the password field value on the recover password form and re-validates if the form has been submitted. * * @ai-category Validation, RecoverPassword, Form * @ai-related initRecoverPasswordForm, setRecoverPasswordFormPasswordAgain, submitRecoverPasswordForm * * @param recoverPasswordForm - The recover password form object to update * @param value - The new password string to set * @returns void * * @example * ```typescript * import { setRecoverPasswordFormPassword } from "@ikas/bp-storefront"; * setRecoverPasswordFormPassword(recoverPasswordForm, "newSecurePassword123"); * ``` */ export declare function setRecoverPasswordFormPassword(recoverPasswordForm: RecoverPasswordForm, value: string): void; /** * Sets the password confirmation field value on the recover password form and re-validates if the form has been submitted. * * @ai-category Validation, RecoverPassword, Form * @ai-related initRecoverPasswordForm, setRecoverPasswordFormPassword, submitRecoverPasswordForm * * @param recoverPasswordForm - The recover password form object to update * @param value - The password confirmation string to set * @returns void * * @example * ```typescript * import { setRecoverPasswordFormPasswordAgain } from "@ikas/bp-storefront"; * setRecoverPasswordFormPasswordAgain(recoverPasswordForm, "newSecurePassword123"); * ``` */ export declare function setRecoverPasswordFormPasswordAgain(recoverPasswordForm: RecoverPasswordForm, value: string): void; /** * Validates and submits the recover password form, sending the new password along with the URL token to the API. * * @ai-category Validation, RecoverPassword, Form * @ai-related initRecoverPasswordForm, setRecoverPasswordFormPassword, setRecoverPasswordFormPasswordAgain * * @param recoverPasswordForm - The recover password form object to validate and submit * @returns A promise that resolves to true if the password was recovered successfully, or false if validation failed or the API returned an error * * @example * ```typescript * import { submitRecoverPasswordForm } from "@ikas/bp-storefront"; * const success = await submitRecoverPasswordForm(recoverPasswordForm); * if (success) { * console.log("Password recovered successfully"); * } * ``` */ export declare function submitRecoverPasswordForm(recoverPasswordForm: RecoverPasswordForm): Promise;