import React from 'react'; import { type Shipment } from './Shipments/ShipmentRow.js'; interface Carrier { code: string; name: string; capabilities?: { createLabel?: boolean; generateTrackingUrl?: boolean; voidLabel?: boolean; fetchStatus?: boolean; }; } interface ShipmentsProps { order: { noShippingRequired: boolean; shipments: Shipment[]; }; carriers: Carrier[]; } /** * Shipments card. Lifts out of the Items card (used to be injected via * `order_actions` Area inside Items) and lives as its own leftSide entry * sortOrder 15 — between Items (10) and Payment (20). * * The "Create shipment" button moved to the Items card header. This card * is purely a list of per-shipment sub-cards. Empty state hides the whole * card (the parent layout won't render an empty card frame). */ export default function Shipments({ order: { noShippingRequired, shipments }, carriers }: ShipmentsProps): React.JSX.Element | null; export declare const layout: { areaId: string; sortOrder: number; }; export declare const query = "\n query Query {\n order(uuid: getContextValue(\"orderId\")) {\n noShippingRequired\n shipments {\n uuid\n shipmentId\n carrier\n carrierName\n trackingNumber\n trackingUrl\n labelUrl\n status {\n code\n name\n badge\n phase\n }\n phase\n shippedAt {\n text(format: \"LLL dd, yyyy\")\n }\n deliveredAt {\n text(format: \"LLL dd, yyyy\")\n }\n canceledAt {\n text(format: \"LLL dd, yyyy\")\n }\n createdAt {\n text(format: \"LLL dd, yyyy\")\n }\n items {\n uuid\n orderItemId\n qty\n productSku\n productName\n thumbnail\n }\n markDeliveredApi\n cancelShipmentApi\n voidShipmentLabelApi\n }\n }\n carriers {\n code\n name\n capabilities {\n createLabel\n generateTrackingUrl\n voidLabel\n fetchStatus\n }\n }\n }\n"; export {};