import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
export interface IVotesInterface extends Interface {
    getFunction(nameOrSignature: "delegate" | "delegateBySig" | "delegates" | "getPastTotalSupply" | "getPastVotes" | "getVotes"): FunctionFragment;
    getEvent(nameOrSignatureOrTopic: "DelegateChanged" | "DelegateVotesChanged"): EventFragment;
    encodeFunctionData(functionFragment: "delegate", values: [AddressLike]): string;
    encodeFunctionData(functionFragment: "delegateBySig", values: [
        AddressLike,
        BigNumberish,
        BigNumberish,
        BigNumberish,
        BytesLike,
        BytesLike
    ]): string;
    encodeFunctionData(functionFragment: "delegates", values: [AddressLike]): string;
    encodeFunctionData(functionFragment: "getPastTotalSupply", values: [BigNumberish]): string;
    encodeFunctionData(functionFragment: "getPastVotes", values: [AddressLike, BigNumberish]): string;
    encodeFunctionData(functionFragment: "getVotes", values: [AddressLike]): string;
    decodeFunctionResult(functionFragment: "delegate", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "delegateBySig", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "delegates", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getPastTotalSupply", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getPastVotes", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getVotes", data: BytesLike): Result;
}
export declare namespace DelegateChangedEvent {
    type InputTuple = [
        delegator: AddressLike,
        fromDelegate: AddressLike,
        toDelegate: AddressLike
    ];
    type OutputTuple = [
        delegator: string,
        fromDelegate: string,
        toDelegate: string
    ];
    interface OutputObject {
        delegator: string;
        fromDelegate: string;
        toDelegate: string;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace DelegateVotesChangedEvent {
    type InputTuple = [
        delegate: AddressLike,
        previousVotes: BigNumberish,
        newVotes: BigNumberish
    ];
    type OutputTuple = [
        delegate: string,
        previousVotes: bigint,
        newVotes: bigint
    ];
    interface OutputObject {
        delegate: string;
        previousVotes: bigint;
        newVotes: bigint;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export interface IVotes extends BaseContract {
    connect(runner?: ContractRunner | null): IVotes;
    waitForDeployment(): Promise<this>;
    interface: IVotesInterface;
    queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
    queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
    on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
    on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
    once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
    once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
    listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
    listeners(eventName?: string): Promise<Array<Listener>>;
    removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
    delegate: TypedContractMethod<[delegatee: AddressLike], [void], "nonpayable">;
    delegateBySig: TypedContractMethod<[
        delegatee: AddressLike,
        nonce: BigNumberish,
        expiry: BigNumberish,
        v: BigNumberish,
        r: BytesLike,
        s: BytesLike
    ], [
        void
    ], "nonpayable">;
    delegates: TypedContractMethod<[account: AddressLike], [string], "view">;
    getPastTotalSupply: TypedContractMethod<[
        timepoint: BigNumberish
    ], [
        bigint
    ], "view">;
    getPastVotes: TypedContractMethod<[
        account: AddressLike,
        timepoint: BigNumberish
    ], [
        bigint
    ], "view">;
    getVotes: TypedContractMethod<[account: AddressLike], [bigint], "view">;
    getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
    getFunction(nameOrSignature: "delegate"): TypedContractMethod<[delegatee: AddressLike], [void], "nonpayable">;
    getFunction(nameOrSignature: "delegateBySig"): TypedContractMethod<[
        delegatee: AddressLike,
        nonce: BigNumberish,
        expiry: BigNumberish,
        v: BigNumberish,
        r: BytesLike,
        s: BytesLike
    ], [
        void
    ], "nonpayable">;
    getFunction(nameOrSignature: "delegates"): TypedContractMethod<[account: AddressLike], [string], "view">;
    getFunction(nameOrSignature: "getPastTotalSupply"): TypedContractMethod<[timepoint: BigNumberish], [bigint], "view">;
    getFunction(nameOrSignature: "getPastVotes"): TypedContractMethod<[
        account: AddressLike,
        timepoint: BigNumberish
    ], [
        bigint
    ], "view">;
    getFunction(nameOrSignature: "getVotes"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
    getEvent(key: "DelegateChanged"): TypedContractEvent<DelegateChangedEvent.InputTuple, DelegateChangedEvent.OutputTuple, DelegateChangedEvent.OutputObject>;
    getEvent(key: "DelegateVotesChanged"): TypedContractEvent<DelegateVotesChangedEvent.InputTuple, DelegateVotesChangedEvent.OutputTuple, DelegateVotesChangedEvent.OutputObject>;
    filters: {
        "DelegateChanged(address,address,address)": TypedContractEvent<DelegateChangedEvent.InputTuple, DelegateChangedEvent.OutputTuple, DelegateChangedEvent.OutputObject>;
        DelegateChanged: TypedContractEvent<DelegateChangedEvent.InputTuple, DelegateChangedEvent.OutputTuple, DelegateChangedEvent.OutputObject>;
        "DelegateVotesChanged(address,uint256,uint256)": TypedContractEvent<DelegateVotesChangedEvent.InputTuple, DelegateVotesChangedEvent.OutputTuple, DelegateVotesChangedEvent.OutputObject>;
        DelegateVotesChanged: TypedContractEvent<DelegateVotesChangedEvent.InputTuple, DelegateVotesChangedEvent.OutputTuple, DelegateVotesChangedEvent.OutputObject>;
    };
}
//# sourceMappingURL=IVotes.d.ts.map