import Web3 from "web3"; import { TransactionConfig, TransactionReceipt } from "web3-eth"; import * as Eulith from "./index"; export declare module Utils { function serverVersion(provider: Eulith.Provider): Promise; /** * Note: unless you explicitly pass throwOnFailure: false, this will throw an error if the transaction fails * for any reason, making it easy to handle errors with successive transactions - just await and outer * try/catch */ function waitForTxReceipt({ logger, web3, provider, txHash, timeoutInMS, throwOnFailure }: { web3?: Web3; provider?: Eulith.Provider; txHash: string; timeoutInMS?: number; logger?: Eulith.Logging.ILogger; throwOnFailure?: boolean; }): Promise; /** * If your transaction config is incomplete, we try to fill defaults with the given provider */ function fillTransactionDefaults(transaction: TransactionConfig, provider?: Eulith.Provider | Eulith.Web3, logger?: Eulith.Logging.ILogger): Promise; function parseTxResponse(txResponse: any): any; function addGas(tx: TransactionConfig, gasToAdd: number): TransactionConfig; function toCamelCase(obj: any): any; function toSnakeCase(obj: any): any; }