import { FormOfPaymentType, type MeldServiceProvider, type SwappedFormOfPayment } from '@funkit/api-base'; import { PaymentMethod, type PaymentMethodInfo } from '../../../domains/paymentMethods'; import { FunCheckoutStep } from '../../../modals/CheckoutModal/FunCheckoutStep'; import type { CheckoutModalState } from '../../../modals/CheckoutModal/stepTransition'; import { WithdrawalModalStep } from '../../../modals/WithdrawalModal/types'; import type { AnalyticsFlow, AnalyticsStep, PaymentMethodProperties } from './events'; /** Round analytics amounts before Statsig stringifies event metadata. */ export declare function formatAnalyticsAmount(amount: number | null): string | null; /** * Steps that only host another renderer. Every V2 screen renders under * FIAT_V2, so a step name for it would merge them all; V2 screens report * their own shared names instead. */ export type AnalyticsHostStep = FunCheckoutStep.FIAT_V2; export type AnalyticsNamedStep = Exclude | WithdrawalModalStep; export declare function isAnalyticsHostStep(step: FunCheckoutStep | WithdrawalModalStep): step is AnalyticsHostStep; export declare function formatAnalyticsStep(step: AnalyticsNamedStep): AnalyticsStep; /** `prev_step` after a host step is unknown to web V1, so it is reported as none. */ export declare function formatPrevAnalyticsStep(step: FunCheckoutStep | null): AnalyticsStep | null; export declare function getCheckoutModalAnalyticsFlow(modalState: CheckoutModalState): AnalyticsFlow; export declare function getHistoricalSourceAddress(sourceOfFund: string | null | undefined): string | null; /** Selected checkout provider, such as a wallet connector or Meld provider. */ export declare function resolveProvider(args: { paymentMethodInfo: PaymentMethodInfo; serviceProvider?: MeldServiceProvider; }, connectorId: string | undefined): string | null; /** Payment-method-derived fields shared by deposit analytics payloads. */ export declare function resolvePaymentMethodProperties(args: { paymentMethodInfo: PaymentMethodInfo; serviceProvider?: MeldServiceProvider; }, connectorId: string | undefined): PaymentMethodProperties; export declare function mapSwappedFopTypeToPaymentMethod(fopType: FormOfPaymentType): PaymentMethod | Lowercase; export declare function getWithdrawalAnalyticsPaymentMethod(step: WithdrawalModalStep, selectedFop?: Pick | null): PaymentMethod | Lowercase | null;