import type { BagItemEntity, ProductEntityDenormalized } from '../../entities/types/index.js'; import type { BagItemMetadata } from '@farfetch/blackout-client'; import type { CustomAttributesAdapted, SizeAdapted } from '../../helpers/adapters/index.js'; type BuildBagItemParams = { authCode?: string; customAttributes?: CustomAttributesAdapted; merchantId: number; product: ProductEntityDenormalized; productAggregatorId?: Exclude['id']; quantity?: number; size: SizeAdapted | BagItemEntity['size']; metadata?: BagItemMetadata; }; /** * Build a bag item ready to bag requests (add or update). * * @param data - Details of the bag item to build. * * @returns Bag item data ready to perform add or update requests. */ declare const buildBagItem: ({ authCode, customAttributes, merchantId, product, productAggregatorId, quantity, size, metadata, }: BuildBagItemParams) => { authCode: string | undefined; customAttributes: string | null; merchantId: number; productId: number; productAggregatorId: number | undefined; quantity: number; scale: number; size: number; metadata: import("@farfetch/blackout-client").Metadata | undefined; }; export default buildBagItem;