import type { Price, ProductSummaryPrice, ProductSummaryTypedPrice } from '@farfetch/blackout-client'; export type PlpPrice = ProductSummaryPrice & ProductSummaryTypedPrice; export type PriceAdapted = { discount?: { rate: Price['discountRate']; includingTaxes?: Price['discountInclTaxes']; excludingTaxes?: Price['discountExclTaxes']; }; excludingTaxes?: Price['priceExclTaxes']; formatted: { includingTaxes: Price['formattedPrice']; includingTaxesWithoutDiscount: Price['formattedPriceWithoutDiscount']; }; includingTaxes: Price['priceInclTaxes']; includingTaxesWithoutDiscount: Price['priceInclTaxesWithoutDiscount']; isFormatted: boolean; priceType?: ProductSummaryPrice['priceType']; promotionType?: ProductSummaryTypedPrice['promotionType']; tags?: Price['tags']; taxes: { rate: Price['taxesRate'] | undefined; amount: Price['taxesValue'] | undefined; type: Price['taxType'] | undefined; }; type?: ProductSummaryTypedPrice['type']; }; export type AdaptPrice = (priceToAdapt: Price | ProductSummaryPrice | ProductSummaryTypedPrice | PriceAdapted) => PriceAdapted | undefined;