import { LoginForm } from "../../../../storefront-models/src"; /** * Initializes the login form with default email and password field values, labels, and placeholders. * * @ai-category Validation, Login, Form * @ai-related setLoginFormEmail, setLoginFormPassword, submitLoginForm * * @param loginForm - The login form model to initialize * @returns void * * @example * ```typescript * import { initLoginForm } from "@ikas/bp-storefront"; * initLoginForm(loginForm); * ``` */ export declare function initLoginForm(loginForm: LoginForm): void; /** * Sets the email value on the login form and re-validates if the form has already been submitted. * * @ai-category Validation, Login, Form * @ai-related initLoginForm, setLoginFormPassword, submitLoginForm * * @param loginForm - The login form model to update * @param value - The new email address string to set * @returns void * * @example * ```typescript * import { setLoginFormEmail } from "@ikas/bp-storefront"; * setLoginFormEmail(loginForm, "user@example.com"); * ``` */ export declare function setLoginFormEmail(loginForm: LoginForm, value: string): void; /** * Sets the password value on the login form and re-validates if the form has already been submitted. * * @ai-category Validation, Login, Form * @ai-related initLoginForm, setLoginFormEmail, submitLoginForm * * @param loginForm - The login form model to update * @param value - The new password string to set * @returns void * * @example * ```typescript * import { setLoginFormPassword } from "@ikas/bp-storefront"; * setLoginFormPassword(loginForm, "mySecurePassword123"); * ``` */ export declare function setLoginFormPassword(loginForm: LoginForm, value: string): void; /** * Validates and submits the login form, authenticating the customer with the provided email and password. * * @ai-category Validation, Login, Form * @ai-related initLoginForm, setLoginFormEmail, setLoginFormPassword * * @param loginForm - The login form model to submit * @returns A promise that resolves to true if login was successful, or false on validation error or authentication failure * * @example * ```typescript * import { submitLoginForm } from "@ikas/bp-storefront"; * const success = await submitLoginForm(loginForm); * if (success) { * console.log("Login successful!"); * } * ``` */ export declare function submitLoginForm(loginForm: LoginForm): Promise;