import { TransactionRequest, TransactionResponse } from 'ethers'; import { EthereumGatewayWallet } from './types'; export type ErrorWithCode = Error & { code?: number; message: string; errorMessage?: string; }; export type EthereumTransactionError = ErrorWithCode & { error?: ErrorWithCode; reason?: string; }; export declare enum EthReceiptStatusCodes { FAILED = 0, SUCCEEDED = 1 } export declare const parseTransactionErrorCode: (error: EthereumTransactionError) => string | undefined; export declare const signAndSendTransactionUsingWallet: (wallet: EthereumGatewayWallet) => (txRequest: TransactionRequest) => Promise; export declare const ethersV6TransactionRequestFromJSONString: (partiallySignedTx: string) => TransactionRequest; export declare const getTransactionReceiptStatus: (txId: string, wallet: EthereumGatewayWallet) => Promise; export declare const pollForResult: (fn: () => Promise, maxTime: number, interval?: number) => Promise;