import { type TxResponseBase } from '@leapwallet/elements-core'; export interface TxResponse extends TxResponseBase { code: number; codespace: string; data: string; events: any[]; gas_used: string; gas_wanted: string; height: string; info: string; logs: any[]; raw_log: string; timestamp: string; tx: any; txhash: string; } export declare const isSuccessfulTx: (data: { tx_response: TxResponse; }) => boolean; export type TxResult = { tx: any; tx_response: TxResponse; }; export type UsePollForTxnReturnType = Readonly<{ tx: TxResult | undefined; isPolling: boolean; error: Error | undefined; }>; /** * React hook to poll for a cosmos based chain's transaction's status */ export declare const usePollForTxn: (txHash: string | undefined, restUrl: string, pollInterval?: number, failureTimeout?: number, enabled?: boolean) => UsePollForTxnReturnType;