import type { ReceivedDto } from '../components/transfer-details/TransferDetailsProps'; /** * Extra items are those present in `items` but whose SKU does NOT appear in * `itemsAtSubmission` (i.e. a completely new SKU added during delivery). * * For V2 POs the backend appends new item records (with new UUIDs) to * `po.items` for each delivery — even for SKUs that were in the original order. * Those are NOT extra items. We always match by `sku._id` so only genuinely * new SKUs (not present in the original order at all) are treated as extras. * * Deduplicates by sku._id: a genuinely extra SKU that was received across * multiple deliveries appears multiple times in po.items, but we only need * one representative entry (the first occurrence) to render the extras section. */ export declare function computeExtraItems(po: FdoPurchaseOrder | undefined): FdoPurchaseOrderItem[]; /** * Build a received map for extra items by aggregating amounts from delivery order history. * Always keys by sku._id (consistent with computeExtraItems). */ export declare function buildExtrasReceivedMap(po: FdoPurchaseOrder | undefined, extraItems: FdoPurchaseOrderItem[]): Record;