import React from 'react'; import { type UnshippedItem } from './Shipments/NewShipmentDialog.js'; interface VariantOption { attributeName?: string; attributeCode?: string; optionText?: string; } interface OrderItem { orderItemId: string; qty: number; productName: string; productSku: string; productUrl: string | null; thumbnail: string | null; noShippingRequired: boolean; variantOptions: VariantOption[] | null; productPrice: { value: number; text: string; }; lineTotal: { value: number; text: string; }; fulfillmentBadge: string; } interface Carrier { code: string; name: string; capabilities?: { createLabel?: boolean; generateTrackingUrl?: boolean; voidLabel?: boolean; fetchStatus?: boolean; }; } interface ItemsProps { order: { items: OrderItem[]; unshippedItems: UnshippedItem[]; noShippingRequired: boolean; createShipmentApi: string; shippingMethodData: { snapshot?: { carrier?: string | null; } | null; } | null; }; carriers: Carrier[]; } /** * Items card. Sits at the top of the admin order-edit left column. * Header carries the "Create shipment" trigger (or "All items fulfilled" * badge when nothing is left). The body is the line-item list, each row * showing the per-item fulfillment badge from the server resolver and an * "N left to ship" hint when partial. * * The Shipments list lives in a sibling card (`Shipments.tsx`, sortOrder 15) * — the previous "Shipments-inside-Items via order_actions area" nesting is * gone with this refactor. */ export default function Items({ order, carriers }: ItemsProps): React.JSX.Element; export declare const layout: { areaId: string; sortOrder: number; }; export declare const query = "\n query Query {\n order(uuid: getContextValue(\"orderId\")) {\n noShippingRequired\n createShipmentApi\n shippingMethodData {\n snapshot {\n carrier\n }\n }\n items {\n orderItemId\n qty\n productName\n productSku\n productUrl\n thumbnail\n noShippingRequired\n fulfillmentBadge\n variantOptions {\n attributeCode\n attributeName\n attributeId\n optionId\n optionText\n }\n productPrice {\n value\n text\n }\n lineTotal {\n value\n text\n }\n }\n unshippedItems {\n uuid\n orderItemId\n productSku\n productName\n qtyOrdered\n qtyUnshipped\n }\n }\n carriers {\n code\n name\n capabilities {\n createLabel\n generateTrackingUrl\n voidLabel\n fetchStatus\n }\n }\n }\n"; export {};