import type { DirectExecutionType, FormOfPaymentType } from '@funkit/api-base'; import type { FunkitCheckoutQuoteResult } from '../../../domains/quote'; import { PaymentMethod } from '../../../domains/paymentMethods'; import { type AnalyticsPaymentRail, type ConnectionStatus, type WithdrawalAmountSelectionType, type WithdrawalTransferInteractionAction } from './events'; export type AssetDescriptorArgs = { chainId: string; tokenAddress: string; ticker: string | null; }; export type TrackWithdrawalAmountConfirmedArgs = { selectType: WithdrawalAmountSelectionType; source: AssetDescriptorArgs; sourceAmount: number; target: AssetDescriptorArgs; targetAmount: number | null; }; export type TrackWithdrawalMethodSelectedArgs = { connectionStatus?: ConnectionStatus; /** Swapped methods without a PaymentMethod equivalent use their lowercase FOP type. */ paymentMethod: PaymentMethod | Lowercase; paymentRail?: AnalyticsPaymentRail; /** Selected checkout provider, such as a Lighter method id. */ provider?: string; }; export type TrackWithdrawalTransferInteractedArgs = { action: WithdrawalTransferInteractionAction; balanceAmount: string | null; previousSourceAmount: string | null; previousTarget: { asset: string | null; ticker: string | null; chain: string | null; }; recipientAddress: string | null; source: { asset: string; ticker: string; chain: string; }; sourceAmount: string | null; target: { asset: string | null; ticker: string | null; chain: string | null; }; }; export type TrackWithdrawalQuoteSnapshotArgs = { destinationAddress: string | null; executionType: DirectExecutionType | null; numQuoteRefreshes: number; quote: FunkitCheckoutQuoteResult; source: AssetDescriptorArgs; sourceAddress: string | null; sourceAssetAmount: string; target: AssetDescriptorArgs; targetAssetAmount: string | null; }; /** Gathers withdrawal context and emits withdrawal-family analytics events. */ export declare function useWithdrawalAnalytics(): { trackWithdrawalAmountConfirmed: (args: TrackWithdrawalAmountConfirmedArgs) => void; trackWithdrawalMethodSelected: (args: TrackWithdrawalMethodSelectedArgs) => void; trackWithdrawalQuoteConfirmed: (args: TrackWithdrawalQuoteSnapshotArgs) => void; trackWithdrawalQuoteDisplayed: (args: TrackWithdrawalQuoteSnapshotArgs) => void; trackWithdrawalTransferInteracted: (args: TrackWithdrawalTransferInteractedArgs) => void; };