import { FundingMethod } from '../../Openfort/types.js'; /** * What a row routes into: * - `buy`: the fiat onramp flow. The PROVIDER is resolved by Openfort (region + * destination asset) — it is never shown to or chosen by the end user. * - `crypto` / `wallet` / `cex`: the funding-session Pages. */ export type DepositMethodTarget = { kind: 'buy'; method: FundingMethod; } | { kind: 'crypto'; } | { kind: 'wallet'; } | { kind: 'cex'; }; type DepositMethod = { id: FundingMethod; title: string; /** Speed/fee hint, e.g. "instant, ~4% fee". */ subtitle: string; target: DepositMethodTarget; /** Wallet-pay rows that require a device/browser capability check. */ device?: 'apple' | 'google'; }; /** Context used to order/filter the rows for the current device. */ type PaymentOptionsContext = { isMobile: boolean; /** When the funding backend is unavailable, crypto/CEX rows are disabled. */ fundingAvailable: boolean; /** Apple Pay is offered only where the browser/device can present it. */ canApplePay?: boolean; /** Google Pay is offered only where the browser/device can present it. */ canGooglePay?: boolean; /** * Integrator-selected methods, in display order. When set, only these show * (still subject to device/availability gating). Omit to show all. */ methods?: FundingMethod[]; }; /** A row ready to render: resolved order, plus disabled state + reason. */ type ResolvedDepositOption = DepositMethod & { disabled: boolean; disabledReason?: string; }; /** * Whether this browser can present the Apple Pay sheet — Safari on macOS and * iOS, so desktop Safari counts too. ApplePaySession throws in insecure * contexts; treat any failure as "can't". */ export declare function canPresentApplePay(): boolean; /** * Resolve the deposit rows for the current context: pick the integrator's * `methods` (or all) in order, filter device-incompatible wallet pay, float * wallet pay first on mobile when the order isn't explicit, and mark unavailable * rows disabled with a reason. */ export declare function getPaymentOptions(ctx: PaymentOptionsContext): ResolvedDepositOption[]; export {};