/** * 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; /** `checkout-redirect` to persist, or `null` to leave the host's value untouched. */ returnUrl: string | null; userLoggedIn: boolean; onPaymentAuthorized: (event: ApplePayJS.ApplePayPaymentAuthorizedEvent, session: ApplePaySession) => Promise; onCancel?: () => void; }; export declare function redirectToFallbackCheckout(config: Pick): void; export declare function startApplePaySession(config: ApplePaySessionConfig): void;