import { JsonRpcProvider, Web3Provider } from '@ethersproject/providers'; /** * Only transactions included in blocks post-Byzantium Hard Fork have this property status. * https://docs.ethers.io/v5/api/providers/types/#providers-TransactionReceipt * **/ export declare enum TxStatusType { 'REVERTED' = 0, 'SUCCESSFUL' = 1, 'PENDING' = 2 } export declare enum FailedReasonType { OutOfGas = "Out of gas" } export interface ITxStatus { status: TxStatusType; error: FailedReasonType | null; } export declare const getTxStatus: (txHash: string, provider: Web3Provider | JsonRpcProvider, callback: ((arg0: ITxStatus) => void) | undefined) => Promise;