import { CustomerReviewForm } from "../../../../storefront-models/src"; /** * Initializes the customer review form with default field values, labels, and placeholders for title, comment, and star rating. * * @ai-category Validation, CustomerReview, Form * @ai-related setCustomerReviewFormTitle, setCustomerReviewFormComment, setCustomerReviewFormStar, submitCustomerReviewForm * * @param customerReviewForm - The customer review form model to initialize * @param productId - The ID of the product being reviewed * @returns void * * @example * ```typescript * import { initCustomerReviewForm } from "@ikas/bp-storefront"; * initCustomerReviewForm(customerReviewForm, "product-123"); * ``` */ export declare function initCustomerReviewForm(customerReviewForm: CustomerReviewForm, productId: string): void; /** * Sets the review title value and re-validates the form if it has already been submitted. * * @ai-category Validation, CustomerReview, Form * @ai-related initCustomerReviewForm, setCustomerReviewFormComment, setCustomerReviewFormStar, submitCustomerReviewForm * * @param customerReviewForm - The customer review form model to update * @param value - The new title string for the review * @returns void * * @example * ```typescript * import { setCustomerReviewFormTitle } from "@ikas/bp-storefront"; * setCustomerReviewFormTitle(customerReviewForm, "Great product!"); * ``` */ export declare function setCustomerReviewFormTitle(customerReviewForm: CustomerReviewForm, value: string): void; /** * Sets the review comment value and re-validates the form if it has already been submitted. * * @ai-category Validation, CustomerReview, Form * @ai-related initCustomerReviewForm, setCustomerReviewFormTitle, setCustomerReviewFormStar, submitCustomerReviewForm * * @param customerReviewForm - The customer review form model to update * @param value - The new comment string for the review * @returns void * * @example * ```typescript * import { setCustomerReviewFormComment } from "@ikas/bp-storefront"; * setCustomerReviewFormComment(customerReviewForm, "I really enjoyed using this product."); * ``` */ export declare function setCustomerReviewFormComment(customerReviewForm: CustomerReviewForm, value: string): void; /** * Sets the star rating value and re-validates the form if it has already been submitted. * * @ai-category Validation, CustomerReview, Form * @ai-related initCustomerReviewForm, setCustomerReviewFormTitle, setCustomerReviewFormComment, submitCustomerReviewForm * * @param customerReviewForm - The customer review form model to update * @param value - The star rating as a string (expected to be an integer between 1 and 5) * @returns void * * @example * ```typescript * import { setCustomerReviewFormStar } from "@ikas/bp-storefront"; * setCustomerReviewFormStar(customerReviewForm, "5"); * ``` */ export declare function setCustomerReviewFormStar(customerReviewForm: CustomerReviewForm, value: string): void; /** * Validates and submits the customer review form, sending the review (title, comment, star rating) for the associated product. * * @ai-category Validation, CustomerReview, Form * @ai-related initCustomerReviewForm, setCustomerReviewFormTitle, setCustomerReviewFormComment, setCustomerReviewFormStar * * @param customerReviewForm - The customer review form model to submit * @returns A promise that resolves to true if the review was submitted successfully, or false on validation error or API failure * * @example * ```typescript * import { submitCustomerReviewForm } from "@ikas/bp-storefront"; * const success = await submitCustomerReviewForm(customerReviewForm); * if (success) { * console.log("Review submitted!"); * } * ``` */ export declare function submitCustomerReviewForm(customerReviewForm: CustomerReviewForm): Promise;