import type { AdaptProductImages } from './types/index.js'; /** * Returns an object with all product images grouped by its order, to be used on * multiple site areas. * * @example * ``` * const productImages = adaptProductImages(legacyImages); * Result of productImages === [ * { * order: 1, * sources: { * '250': 'https://cdn-images.farfetch.com/img_1_250.jpg', * '500': 'https://cdn-images.farfetch.com/img_1_500.jpg', * ... * }, * }, * { * order: 2, * sources: { * '250': 'https://cdn-images.farfetch.com/img_2_250.jpg', * '500': 'https://cdn-images.farfetch.com/img_2_500.jpg', * ... * }, * }, * { * ... * } * ]; * * ``` * * @param legacyImages - All product images to be adapted. * @param config - Additional configurations. * * @returns Product images list adapted to be used on multiple site areas. */ declare const adaptProductImages: AdaptProductImages; export default adaptProductImages;