import { OrderTrackingForm } from "../../../../storefront-models/src"; /** * Initializes the order tracking form with default field values for email and order number, and resets submission state. * * @ai-category Validation, OrderTracking, Form * @ai-related setOrderTrackingFormEmail, setOrderTrackingFormOrderNumber, submitOrderTrackingForm * * @param orderTrackingForm - The order tracking form object to initialize * @returns void * * @example * ```typescript * import { initOrderTrackingForm } from "@ikas/bp-storefront"; * initOrderTrackingForm(orderTrackingForm); * ``` */ export declare function initOrderTrackingForm(orderTrackingForm: OrderTrackingForm): void; /** * Sets the email field value on the order tracking form and re-validates if the form has been submitted. * * @ai-category Validation, OrderTracking, Form * @ai-related initOrderTrackingForm, setOrderTrackingFormOrderNumber, submitOrderTrackingForm * * @param orderTrackingForm - The order tracking form object to update * @param value - The email address string to set * @returns void * * @example * ```typescript * import { setOrderTrackingFormEmail } from "@ikas/bp-storefront"; * setOrderTrackingFormEmail(orderTrackingForm, "customer@example.com"); * ``` */ export declare function setOrderTrackingFormEmail(orderTrackingForm: OrderTrackingForm, value: string): void; /** * Sets the order number field value on the order tracking form and re-validates if the form has been submitted. * * @ai-category Validation, OrderTracking, Form * @ai-related initOrderTrackingForm, setOrderTrackingFormEmail, submitOrderTrackingForm * * @param orderTrackingForm - The order tracking form object to update * @param value - The order number string to set * @returns void * * @example * ```typescript * import { setOrderTrackingFormOrderNumber } from "@ikas/bp-storefront"; * setOrderTrackingFormOrderNumber(orderTrackingForm, "ORD-12345"); * ``` */ export declare function setOrderTrackingFormOrderNumber(orderTrackingForm: OrderTrackingForm, value: string): void; /** * Validates and submits the order tracking form, retrieving order details by email and order number. * * @ai-category Validation, OrderTracking, Form * @ai-related initOrderTrackingForm, setOrderTrackingFormEmail, setOrderTrackingFormOrderNumber * * @param orderTrackingForm - The order tracking form object to validate and submit * @returns A promise that resolves to the order response object if successful, or null if validation failed or the order was not found * * @example * ```typescript * import { submitOrderTrackingForm } from "@ikas/bp-storefront"; * const order = await submitOrderTrackingForm(orderTrackingForm); * if (order) { * console.log("Order found:", order); * } * ``` */ export declare function submitOrderTrackingForm(orderTrackingForm: OrderTrackingForm): Promise;