export declare enum PaypalEnvironment { sandbox = "sandbox", live = "live" } export declare enum PayPalWebCheckoutFundingSource { paypalCredit = "paypalCredit", paylater = "paylater", paypal = "paypal" } export type PayPalWebCheckoutSuccessEvent = { type: 'success'; orderID: string; payerID: string; }; export type PayPalWebCheckoutErrorEvent = { type: 'error'; code: number | null | undefined; domain: string | null | undefined; errorDescription: string | null | undefined; }; export type PayPalWebCheckoutCancelEvent = { type: 'cancel'; }; export type PayPalWebCheckoutEvent = PayPalWebCheckoutSuccessEvent | PayPalWebCheckoutErrorEvent | PayPalWebCheckoutCancelEvent; export type PayPalWebCheckoutConfig = { clientID: string; environment: PaypalEnvironment; orderID: string; urlScheme: string; fundingSource?: PayPalWebCheckoutFundingSource; onEvent?: (result: PayPalWebCheckoutEvent) => void; }; export declare const startCheckout: (config: PayPalWebCheckoutConfig) => void; //# sourceMappingURL=index.d.ts.map