/** * ApplePaySession lifecycle manager. * Creates the native Apple Pay payment sheet and wires merchant validation, * payment authorization, and cancellation handlers. */ export type ApplePaySessionConfig = { countryCode: string; currencyCode: string; supportedNetworks: string[]; totalAmount: string; totalLabel: string; skuId: string; /** Surface the button was rendered for; added to every funnel event. */ entryPoint?: string; /** `checkout-redirect` to persist, or `null` to leave the host's value untouched. */ returnUrl: string | null; userLoggedIn: boolean; /** * Print (bundle) offers: the sheet also collects the delivery contact (postal address, name, phone) and * rejects addresses outside these countries before the user can authorise. */ delivery?: { supportedCountries: string[]; }; onPaymentAuthorized: (event: ApplePayJS.ApplePayPaymentAuthorizedEvent, session: ApplePaySession) => Promise; onCancel?: () => void; }; export declare function redirectToFallbackCheckout(config: Pick): void; /** * Contact fields the sheet must collect as the shipping contact. Email only for anonymous users; print offers * additionally need the delivery address, recipient name and phone. */ export declare const requiredShippingFields: (config: Pick) => ApplePayJS.ApplePayContactField[]; export declare function startApplePaySession(config: ApplePaySessionConfig): void;