import type { Surface } from '@funkit/connect-core'; import type { SurfaceAdapter } from './adapter'; import type { StripeOnrampClient } from './stripeOnramp'; interface StripePayParams { action: 'CREATE_CRYPTO_PAYMENT_TOKEN'; walletAddress: string; destinationNetwork: string; merchantCountryCode: string; currencyCode: string; amount: string; label?: string; } export declare function matchStripePayParams(surface: Surface): StripePayParams | undefined; /** * The buyer dismissed the provider's sheet. * * Not a failure: nothing is wrong, nothing needs reporting to support, and the * only right answer is the quote screen they came from. Carried as a code * rather than a separate channel because `onFailed` is the seam the surface * already owns, and its routing — back to entry, with "Try again" — is exactly * what a cancellation wants. The screen suppresses the alert for this one code. */ export declare const STRIPE_PAYMENT_CANCELLED = "collect_apple_pay:cancelled"; /** Stripe's real native sheet, deliberately restricted to Apple Pay. */ export declare function stripePaymentAdapter(stripe: StripeOnrampClient, response?: object): SurfaceAdapter; export declare function stripePaymentReport(token: string): { cryptoPaymentToken: string; }; export declare function stripePaymentErrorCode(error: unknown): string; /** Whatever the SDK attached to a rejection, so a bucket code is not the whole story. */ export declare function stripePaymentErrorDetail(error: unknown): Record; export declare function collectApplePay(stripe: StripeOnrampClient, params: StripePayParams, seamlessClientSecret?: string): Promise; export {}; //# sourceMappingURL=stripePayment.d.ts.map