import { StripeConstructor } from "@stripe/stripe-js"; //#region src/payment-methods/stripe-google-pay-adapter.d.ts declare global { interface Window { Stripe?: StripeConstructor; } } interface PaymentRequestConfig { country: string; currency: string; total: { label: string; amount: number; }; requestPayerName: boolean; requestPayerEmail: boolean; } type ShowPaymentSheetResult = { success: true; paymentMethodId: string; payerEmail?: string; complete: (status: "success" | "fail") => void; } | { success: false; cancelled: true; } | { success: false; error: string; }; type ConfirmResult = { success: true; } | { success: false; error: string; }; declare enum GooglePayMockScenario { None = "none", Success = "success", Cancelled = "cancelled", } declare class StripeGooglePayAdapter { private stripe; private paymentRequest; private mockScenario; constructor(mockScenario?: GooglePayMockScenario); initialize(publishableKey: string): boolean; createPaymentRequest(config: PaymentRequestConfig): void; canMakePayment(): Promise; showPaymentSheet(): Promise; confirmCardSetup(clientSecret: string, paymentMethodId: string): Promise; } //#endregion export { StripeGooglePayAdapter as a, ShowPaymentSheetResult as i, GooglePayMockScenario as n, PaymentRequestConfig as r, ConfirmResult as t }; //# sourceMappingURL=stripe-google-pay-adapter-B330fRiH.d.mts.map