import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../common"; export interface LockInterface extends Interface { getFunction(nameOrSignature: "owner" | "unlockTime" | "withdraw"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData(functionFragment: "unlockTime", values?: undefined): string; encodeFunctionData(functionFragment: "withdraw", values?: undefined): string; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "unlockTime", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; } export declare namespace WithdrawalEvent { type InputTuple = [amount: BigNumberish, when: BigNumberish]; type OutputTuple = [amount: bigint, when: bigint]; interface OutputObject { amount: bigint; when: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface Lock extends BaseContract { connect(runner?: ContractRunner | null): Lock; waitForDeployment(): Promise; interface: LockInterface; 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; owner: TypedContractMethod<[], [string], "view">; unlockTime: TypedContractMethod<[], [bigint], "view">; withdraw: TypedContractMethod<[], [void], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "unlockTime"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[], [void], "nonpayable">; getEvent(key: "Withdrawal"): TypedContractEvent; filters: { "Withdrawal(uint256,uint256)": TypedContractEvent; Withdrawal: TypedContractEvent; }; }