import { SkipMsg, SkipMsgV2 } from '@leapwallet/elements-core'; import { UseAggregatedRouteResponse, UseRouteResponse } from './use-route'; export type Action = { type: 'SEND'; asset: string; transactionNumber: number; sourceChain: string; id: string; index: number; } | { type: 'SWAP'; sourceAsset: string; destinationAsset: string; chain: string; venue: string; id: string; transactionNumber: number; index: number; destinationChain?: string; } | { type: 'TRANSFER'; asset: string; sourceChain: string; destinationChain: string; id: string; transactionNumber: number; index: number; }; /** * React hook to get the transactions in a grouped format from a route */ export declare const useTransactions: (route: (UseRouteResponse & { messages?: SkipMsg[] | SkipMsgV2[]; }) | null, isTestnet?: boolean) => { groupedTransactions: Record; actions: Action[]; }; /** * React hook to get the transactions in a grouped format from a Lifi route * Note: Each txn step is denoted a an individual txn: Transaction 1, Transaction 2, etc. * We are using routeResponse.steps - to get each txn. `includedSteps` field within it denotes the actions for that particular txn */ export declare const useLifiTransactions: (route: UseAggregatedRouteResponse | null, isTestnet?: boolean) => { groupedTransactions: Record; actions: Action[]; }; export declare const useRelayTransactions: (route: UseAggregatedRouteResponse | null, isTestnet?: boolean) => { groupedTransactions: Record; actions: Action[]; };