/** * Delivery address rules for print (bundle) offers. Ported from sma-checkout * `src/hooks/use-address-form-config/address-rules` (required.ts, validations.ts) so an Apple Pay delivery * address is held to the same rules as the checkout form. The wallet-payments-api re-validates the same rules * server-side. Keep all three in sync. */ export type DeliveryField = 'address1' | 'city' | 'state' | 'postalCode' | 'phone'; /** Commerce Services length limits (sma-checkout `validations.ts`). */ export declare const ADDRESS_LIMITS: { readonly address1: 35; readonly address2: 35; readonly city: 40; readonly state: 40; readonly postalCode: 20; readonly phone: 35; }; /** * Required delivery fields for an offer in `offerCountry` delivering to `country` * (sma-checkout `required.ts`; address1 and city are always required). */ export declare const requiredDeliveryFields: (offerCountry: string, country: string) => DeliveryField[]; /** Postcode format rules by zone (sma-checkout `validations.ts`). Returns an error message or null. */ export declare const postalCodeFormatError: (offerCountry: string, postalCode: string) => string | null; /** * Normalises a wallet phone number like sma-checkout's delivery form (digits only, leading zeros stripped, * country code prefixed). An international number (`+…`) is used as given; a national number is only prefixed * for the countries that require a phone (IN, CN) and is otherwise omitted rather than guessed. */ export declare const normaliseDeliveryPhone: (raw: string | undefined, country: string) => string | undefined;