import { i as PaymentMethod } from "./types-Cjcc3xak.mjs"; //#region src/payment-methods/bnpl-shared.d.ts /** * Shared BNPL (Buy Now Pay Later) payment method factory. * Used by Klarna, Afterpay, and Affirm payment methods. */ type BnplCustomerInfo = { first_name: string; last_name: string; email?: string; }; type BnplStartRequest = { processor_id: string; customer_info: BnplCustomerInfo; fraud_metadata: { ipAddress?: string; browserInfo?: { [key: string]: unknown; }; processorFraudInfo?: { [key: string]: unknown; }; }; setup_future_usage?: boolean; }; type BnplStartResponse = { approval_url: string; popup_token: string; checkout_attempt_id: string; }; type BnplStatusResponse = { completed: boolean; status: "success" | "failed" | "cancelled"; result?: unknown; error?: string; }; type BnplCheckoutResponse = { id: string; checkoutAttemptId: string; checkoutSessionId: string; state: string; customerId?: string; paymentMethodId?: string; processorUsed?: string; subscriptionId?: string; invoiceId?: string; invoiceNumber?: number; }; type BnplSubmitOptions = { processorId: string; customerInfo: BnplCustomerInfo; setupFutureUsage?: boolean; }; type BnplProviderConfig = { name: string; endpointPath: string; supportsSetupFutureUsage?: boolean; }; declare function createBnplPaymentMethod(config: BnplProviderConfig): PaymentMethod<{}, string>; //#endregion export { BnplStartResponse as a, createBnplPaymentMethod as c, BnplStartRequest as i, BnplCustomerInfo as n, BnplStatusResponse as o, BnplProviderConfig as r, BnplSubmitOptions as s, BnplCheckoutResponse as t }; //# sourceMappingURL=bnpl-shared-D-Kd58Qz.d.mts.map