import { IkasProductAttributeList, IkasProductAttributeMap } from "../../../storefront-models/src"; /** * Retrieves grouped attribute values for a product attribute list, combining variant and product-level attributes. * This is how a PRODUCT_ATTRIBUTE_LIST code-component prop is consumed: that prop hands you a single * IkasProductAttributeList wrapper ({ product, attributeListPropValue }) — never an array — so mapping over the * prop is a runtime error; call this function and iterate the returned { attribute, values } maps instead. * * @ai-category AttributeList * @ai-related getSelectedProductVariant, hasProductVariant * * @param list - The product attribute list containing the product and the attribute IDs to retrieve. * @returns An array of attribute maps, each containing the attribute and its associated values, ordered by the configured attribute ID list. * * @example * ```typescript * import { getAttributeListValues } from "@ikas/bp-storefront"; * * const attributeMaps = getAttributeListValues(attributeList); * attributeMaps.forEach((map) => { * console.log(map.attribute.name, map.values); * }); * ``` */ export declare function getAttributeListValues(list: IkasProductAttributeList): IkasProductAttributeMap[];