import { Blockchain, AppConfig, EthereumConfigAssets } from '../types/config.js'; import { TransactionDetails } from '../lib/models.js'; import Big from 'big.js'; import { Maybe } from '@avalabs/core-utils-sdk'; import { Provider } from 'ethers'; interface TrackerViewProps { sourceNetwork: Blockchain; sourceSeconds: number; sourceTxHash?: string; targetNetwork: Blockchain; targetSeconds: number; targetTxHash?: string; confirmationCount: number; requiredConfirmationCount: number; complete: boolean; gasCost?: Big; gasValue?: Big; amount?: Big; symbol?: string; } /** * @deprecated this hook is buggy, prefer trackBridgeTransaction instead. * * Track an EVM transaction * @param started Start timestamp of the source transaction. * @param isHidden Is the screen hidden e.g. document.hidden */ declare function useTxTracker(sourceNetwork: Blockchain, txId: string, started: string, avalancheProvider: Provider, ethereumProvider: Provider, setTransactionDetails: (details: TransactionDetails) => void, config: Maybe, account: Maybe, transactionDetails: Maybe, ethWrappedAssets: Maybe, isHidden?: boolean): TrackerViewProps; export { TrackerViewProps, useTxTracker };