import { BaseContract, ContractTransaction, ContractTransactionResponse } from 'ethers'; export declare type PromiseOrValue = Promise | T; export declare type Web3Window = Window & typeof globalThis & { ethereum: any; }; export declare function sendTransaction(contract: BaseContract, tx: PromiseOrValue, encodeFnName: string): Promise;