import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common"; export interface TestMarshalLibInterface extends Interface { getFunction(nameOrSignature: "decode" | "decodeWithSelector" | "encode" | "encodeWithSelector"): FunctionFragment; encodeFunctionData(functionFragment: "decode", values: [BytesLike]): string; encodeFunctionData(functionFragment: "decodeWithSelector", values: [BytesLike]): string; encodeFunctionData(functionFragment: "encode", values: [boolean, AddressLike]): string; encodeFunctionData(functionFragment: "encodeWithSelector", values: [boolean, BytesLike, AddressLike]): string; decodeFunctionResult(functionFragment: "decode", data: BytesLike): Result; decodeFunctionResult(functionFragment: "decodeWithSelector", data: BytesLike): Result; decodeFunctionResult(functionFragment: "encode", data: BytesLike): Result; decodeFunctionResult(functionFragment: "encodeWithSelector", data: BytesLike): Result; } export interface TestMarshalLib extends BaseContract { connect(runner?: ContractRunner | null): TestMarshalLib; waitForDeployment(): Promise; interface: TestMarshalLibInterface; 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; decode: TypedContractMethod<[ data: BytesLike ], [ [boolean, string] & { isStatic: boolean; handler: string; } ], "view">; decodeWithSelector: TypedContractMethod<[ data: BytesLike ], [ [ boolean, string, string ] & { isStatic: boolean; selector: string; handler: string; } ], "view">; encode: TypedContractMethod<[ isStatic: boolean, handler: AddressLike ], [ string ], "view">; encodeWithSelector: TypedContractMethod<[ isStatic: boolean, selector: BytesLike, handler: AddressLike ], [ string ], "view">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "decode"): TypedContractMethod<[ data: BytesLike ], [ [boolean, string] & { isStatic: boolean; handler: string; } ], "view">; getFunction(nameOrSignature: "decodeWithSelector"): TypedContractMethod<[ data: BytesLike ], [ [ boolean, string, string ] & { isStatic: boolean; selector: string; handler: string; } ], "view">; getFunction(nameOrSignature: "encode"): TypedContractMethod<[ isStatic: boolean, handler: AddressLike ], [ string ], "view">; getFunction(nameOrSignature: "encodeWithSelector"): TypedContractMethod<[ isStatic: boolean, selector: BytesLike, handler: AddressLike ], [ string ], "view">; filters: {}; }