import { type DirectExecutionType } from '@funkit/api-base'; import type { ApiFunkitCheckoutQuoteResult } from '@funkit/utils'; import type { PaymentMethodInfo } from '../../../domains/paymentMethods'; import type { QuoteMode } from '../../../domains/quoteMode'; import type { AnalyticsFlow } from './events'; import type { CheckoutAnalyticsSource } from './checkout'; import type { NotificationItem } from '../../../modals/CheckoutModal/TransferToken/types'; type AssetDescriptor = { chainId: string; tokenAddress: string; ticker: string | null; }; export type ExecutionTransactionSubmittedArgs = { checkout: CheckoutAnalyticsSource; destinationAddress: string | null; executionType: DirectExecutionType | null; historicalUserId: string | null; paymentMethodInfo: PaymentMethodInfo; quote: ApiFunkitCheckoutQuoteResult | null; source: AssetDescriptor | null; sourceAddress: string | null; sourceAssetAmount: string | null; target: AssetDescriptor; targetAssetAmount: string | null; tradeType: QuoteMode | null; txHash: string | null; }; export type ExecutionProgressContext = ExecutionTransactionSubmittedArgs & { claimKey: string; errorCode: string | null; errorMessage: string | null; fulfillmentTimeMs: number | null; isCompleted: boolean; isFailed: boolean; isSubmitted: boolean; }; /** * Resolves the historical source, target, and payment context shared by * progress-screen and notification deposit events. */ export declare function resolveExecutionProgressContext(historyItem: NotificationItem, flow: AnalyticsFlow): ExecutionProgressContext | null; export {};