import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common"; export interface EchoerInterface extends Interface { getFunction(nameOrSignature: "echo"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "Echo"): EventFragment; encodeFunctionData(functionFragment: "echo", values: [BytesLike]): string; decodeFunctionResult(functionFragment: "echo", data: BytesLike): Result; } export declare namespace EchoEvent { type InputTuple = [who: AddressLike, data: BytesLike]; type OutputTuple = [who: string, data: string]; interface OutputObject { who: string; data: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface Echoer extends BaseContract { connect(runner?: ContractRunner | null): Echoer; waitForDeployment(): Promise; interface: EchoerInterface; queryFilter(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; queryFilter(filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; on(event: TCEvent, listener: TypedListener): Promise; on(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; once(event: TCEvent, listener: TypedListener): Promise; once(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; listeners(event: TCEvent): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners(event?: TCEvent): Promise; echo: TypedContractMethod<[_data: BytesLike], [void], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "echo"): TypedContractMethod<[_data: BytesLike], [void], "nonpayable">; getEvent(key: "Echo"): TypedContractEvent; filters: { "Echo(address,bytes)": TypedContractEvent; Echo: TypedContractEvent; }; }