import { TrackerArgs } from './models.js'; interface TrackerSubscription { /** Cancel tracking */ unsubscribe(): void; /** A flag to indicate whether this has already been unsubscribed */ readonly closed: boolean; } /** * Track a bridge transaction to completion. * * The process consists of two steps: * - Ensure that the source blockchain has reached the required number of * confirmations. * - Watch for the new transaction to be created on the target blockchain. * * During the process `onBridgeTransactionUpdate` will be called when the state * of the `bridgeTransaction` changes e.g. `confirmationCount` * * When the two steps finish `onBridgeTransactionUpdate` will be called a final * time with `complete` set to true. * * @returns a subscription object that can be used to unsubscribe * (e.g. when used in a `useEffect` hook) */ declare function trackBridgeTransaction(args: TrackerArgs): TrackerSubscription; export { TrackerSubscription, trackBridgeTransaction };