import { AddressGraphql } from '@evershop/evershop/types/address'; import React from 'react'; interface ShippingMethod { code: string; /** * Provider code (e.g., 'core', 'usps'). Threaded through to * `addShippingMethod` so the server can call the right provider's * validateMethod. Optional at the type level for back-compat with cached * availableShippingMethods data that pre-dates phase 4. */ providerCode?: string; name: string; /** Carrier display name (e.g., 'USPS'). Themes can render it next to name. */ carrier?: string; cost?: { value: number; text: string; }; description?: string; isSelected?: boolean; } export declare function ShippingMethods({ methods, shippingAddress, addressReady, isLoading, onSelect }: { methods: ShippingMethod[]; shippingAddress?: AddressGraphql; /** * True once the country and every REQUIRED geographic field of the * country's schema are filled (spec ยง 9 AC1: Hong Kong has no postal code, * Germany no administrative area). Decides which empty state to show. */ addressReady?: boolean; isLoading?: boolean; onSelect?: (method: ShippingMethod) => Promise | boolean; }): React.JSX.Element; export {};