/** * Converts an HTMLCollection to a standard array of Elements. * * @ai-category Utilities, Helpers * * @param collection - The HTMLCollection to convert. If undefined, an empty array is returned. * @returns An array of Element objects derived from the given HTMLCollection. * * @example * ```typescript * import { collectionToArray } from "@ikas/bp-storefront"; * * const items = document.getElementsByClassName("product-card"); * const itemsArray = collectionToArray(items); * itemsArray.forEach((el) => console.log(el.tagName)); * ``` */ export declare function collectionToArray(collection?: HTMLCollection): Element[];