import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common"; export type RelayerStruct = { owner: AddressLike; balance: BigNumberish; isRegistered: boolean; records: string[]; }; export type RelayerStructOutput = [ owner: string, balance: bigint, isRegistered: boolean, records: string[] ] & { owner: string; balance: bigint; isRegistered: boolean; records: string[]; }; export declare namespace GovernanceAggregator { type ProposalStruct = { proposer: AddressLike; target: AddressLike; startTime: BigNumberish; endTime: BigNumberish; forVotes: BigNumberish; againstVotes: BigNumberish; executed: boolean; extended: boolean; state: BigNumberish; }; type ProposalStructOutput = [ proposer: string, target: string, startTime: bigint, endTime: bigint, forVotes: bigint, againstVotes: bigint, executed: boolean, extended: boolean, state: bigint ] & { proposer: string; target: string; startTime: bigint; endTime: bigint; forVotes: bigint; againstVotes: bigint; executed: boolean; extended: boolean; state: bigint; }; } export interface AggregatorInterface extends Interface { getFunction(nameOrSignature: "ENSRegistry" | "RelayerRegistry" | "getAllProposals" | "getGovernanceBalances" | "getUserData" | "relayersData"): FunctionFragment; encodeFunctionData(functionFragment: "ENSRegistry", values?: undefined): string; encodeFunctionData(functionFragment: "RelayerRegistry", values?: undefined): string; encodeFunctionData(functionFragment: "getAllProposals", values: [AddressLike]): string; encodeFunctionData(functionFragment: "getGovernanceBalances", values: [AddressLike, AddressLike[]]): string; encodeFunctionData(functionFragment: "getUserData", values: [AddressLike, AddressLike]): string; encodeFunctionData(functionFragment: "relayersData", values: [BytesLike[], string[]]): string; decodeFunctionResult(functionFragment: "ENSRegistry", data: BytesLike): Result; decodeFunctionResult(functionFragment: "RelayerRegistry", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getAllProposals", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getGovernanceBalances", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getUserData", data: BytesLike): Result; decodeFunctionResult(functionFragment: "relayersData", data: BytesLike): Result; } export interface Aggregator extends BaseContract { connect(runner?: ContractRunner | null): Aggregator; waitForDeployment(): Promise; interface: AggregatorInterface; 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; ENSRegistry: TypedContractMethod<[], [string], "view">; RelayerRegistry: TypedContractMethod<[], [string], "view">; getAllProposals: TypedContractMethod<[ governance: AddressLike ], [ GovernanceAggregator.ProposalStructOutput[] ], "view">; getGovernanceBalances: TypedContractMethod<[ governance: AddressLike, accs: AddressLike[] ], [ bigint[] ], "view">; getUserData: TypedContractMethod<[ governance: AddressLike, account: AddressLike ], [ [ bigint, bigint, bigint, bigint, string ] & { balance: bigint; latestProposalId: bigint; latestProposalIdState: bigint; timelock: bigint; delegatee: string; } ], "view">; relayersData: TypedContractMethod<[ _relayers: BytesLike[], _subdomains: string[] ], [ RelayerStructOutput[] ], "view">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "ENSRegistry"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "RelayerRegistry"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "getAllProposals"): TypedContractMethod<[ governance: AddressLike ], [ GovernanceAggregator.ProposalStructOutput[] ], "view">; getFunction(nameOrSignature: "getGovernanceBalances"): TypedContractMethod<[ governance: AddressLike, accs: AddressLike[] ], [ bigint[] ], "view">; getFunction(nameOrSignature: "getUserData"): TypedContractMethod<[ governance: AddressLike, account: AddressLike ], [ [ bigint, bigint, bigint, bigint, string ] & { balance: bigint; latestProposalId: bigint; latestProposalIdState: bigint; timelock: bigint; delegatee: string; } ], "view">; getFunction(nameOrSignature: "relayersData"): TypedContractMethod<[ _relayers: BytesLike[], _subdomains: string[] ], [ RelayerStructOutput[] ], "view">; filters: {}; }