import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common"; 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 GovernanceAggregatorInterface extends Interface { getFunction(nameOrSignature: "getAllProposals" | "getGovernanceBalances" | "getUserData"): FunctionFragment; encodeFunctionData(functionFragment: "getAllProposals", values: [AddressLike]): string; encodeFunctionData(functionFragment: "getGovernanceBalances", values: [AddressLike, AddressLike[]]): string; encodeFunctionData(functionFragment: "getUserData", values: [AddressLike, AddressLike]): string; decodeFunctionResult(functionFragment: "getAllProposals", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getGovernanceBalances", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getUserData", data: BytesLike): Result; } export interface GovernanceAggregator extends BaseContract { connect(runner?: ContractRunner | null): GovernanceAggregator; waitForDeployment(): Promise; interface: GovernanceAggregatorInterface; 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; 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">; getFunction(key: string | FunctionFragment): T; 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">; filters: {}; }