import { BackInStockNotificationForm, IkasProductVariant } from "../../../../storefront-models/src"; /** * Initializes the back-in-stock notification form by associating it with a product variant and setting up the email field with localized label and placeholder. * * @ai-category BackInStock, Form, Validation * @ai-related setBackInStockNotificationFormEmail, submitBackInStockNotificationForm * * @param backInStockNotificationForm - The BackInStockNotificationForm instance to initialize. * @param variant - The product variant the customer wants to be notified about when it is back in stock. * @returns void * * @example * ```typescript * import { initBackInStockNotificationForm } from "@ikas/bp-storefront"; * initBackInStockNotificationForm(backInStockNotificationForm, selectedVariant); * ``` */ export declare function initBackInStockNotificationForm(backInStockNotificationForm: BackInStockNotificationForm, variant: IkasProductVariant): void; /** * Sets the email field on the back-in-stock notification form and re-validates if the form has already been submitted. * * @ai-category BackInStock, Form * @ai-related initBackInStockNotificationForm, submitBackInStockNotificationForm * * @param backInStockNotificationForm - The BackInStockNotificationForm instance to update. * @param value - The new email address value. * @returns void * * @example * ```typescript * import { setBackInStockNotificationFormEmail } from "@ikas/bp-storefront"; * setBackInStockNotificationFormEmail(backInStockNotificationForm, "user@example.com"); * ``` */ export declare function setBackInStockNotificationFormEmail(backInStockNotificationForm: BackInStockNotificationForm, value: string): void; /** * Validates and submits the back-in-stock notification form, registering the customer's email for a restock reminder on the associated product variant. * * @ai-category BackInStock, Form, Validation * @ai-related initBackInStockNotificationForm, setBackInStockNotificationFormEmail * * @param backInStockNotificationForm - The BackInStockNotificationForm instance to validate and submit. * @returns A promise that resolves to `true` if the submission succeeded, or `false` if validation failed or the save request failed. * * @example * ```typescript * import { submitBackInStockNotificationForm } from "@ikas/bp-storefront"; * const success = await submitBackInStockNotificationForm(backInStockNotificationForm); * if (success) { * console.log("You will be notified when this item is back in stock."); * } * ``` */ export declare function submitBackInStockNotificationForm(backInStockNotificationForm: BackInStockNotificationForm): Promise;