import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../common";
export type VoteStruct = {
    leafIndex: PromiseOrValue<BigNumberish>;
    proposedGovernor: PromiseOrValue<string>;
    siblingPathNodes: PromiseOrValue<BytesLike>[];
};
export type VoteStructOutput = [number, string, string[]] & {
    leafIndex: number;
    proposedGovernor: string;
    siblingPathNodes: string[];
};
export interface GovernableInterface extends utils.Interface {
    functions: {
        "averageSessionLengthInMillisecs()": FunctionFragment;
        "createVote(uint32,address,bytes32[])": FunctionFragment;
        "currentVotingPeriod()": FunctionFragment;
        "governor()": FunctionFragment;
        "isGovernor()": FunctionFragment;
        "isSignatureFromGovernor(bytes,bytes)": FunctionFragment;
        "isSignatureFromGovernorPrehashed(bytes32,bytes)": FunctionFragment;
        "lastGovernorUpdateTime()": FunctionFragment;
        "recover(bytes,bytes)": FunctionFragment;
        "refreshNonce()": FunctionFragment;
        "renounceOwnership()": FunctionFragment;
        "sessionLengthMultiplier()": FunctionFragment;
        "transferOwnership(address,uint32)": FunctionFragment;
        "transferOwnershipWithSignature(bytes32,uint64,uint32,uint32,bytes,bytes)": FunctionFragment;
        "voteInFavorForceSetGovernor((uint32,address,bytes32[]))": FunctionFragment;
        "voteInFavorForceSetGovernorWithSig((uint32,address,bytes32[])[],bytes[])": FunctionFragment;
        "voterCount()": FunctionFragment;
        "voterMerkleRoot()": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "averageSessionLengthInMillisecs" | "createVote" | "currentVotingPeriod" | "governor" | "isGovernor" | "isSignatureFromGovernor" | "isSignatureFromGovernorPrehashed" | "lastGovernorUpdateTime" | "recover" | "refreshNonce" | "renounceOwnership" | "sessionLengthMultiplier" | "transferOwnership" | "transferOwnershipWithSignature" | "voteInFavorForceSetGovernor" | "voteInFavorForceSetGovernorWithSig" | "voterCount" | "voterMerkleRoot"): FunctionFragment;
    encodeFunctionData(functionFragment: "averageSessionLengthInMillisecs", values?: undefined): string;
    encodeFunctionData(functionFragment: "createVote", values: [
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<string>,
        PromiseOrValue<BytesLike>[]
    ]): string;
    encodeFunctionData(functionFragment: "currentVotingPeriod", values?: undefined): string;
    encodeFunctionData(functionFragment: "governor", values?: undefined): string;
    encodeFunctionData(functionFragment: "isGovernor", values?: undefined): string;
    encodeFunctionData(functionFragment: "isSignatureFromGovernor", values: [PromiseOrValue<BytesLike>, PromiseOrValue<BytesLike>]): string;
    encodeFunctionData(functionFragment: "isSignatureFromGovernorPrehashed", values: [PromiseOrValue<BytesLike>, PromiseOrValue<BytesLike>]): string;
    encodeFunctionData(functionFragment: "lastGovernorUpdateTime", values?: undefined): string;
    encodeFunctionData(functionFragment: "recover", values: [PromiseOrValue<BytesLike>, PromiseOrValue<BytesLike>]): string;
    encodeFunctionData(functionFragment: "refreshNonce", values?: undefined): string;
    encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
    encodeFunctionData(functionFragment: "sessionLengthMultiplier", values?: undefined): string;
    encodeFunctionData(functionFragment: "transferOwnership", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
    encodeFunctionData(functionFragment: "transferOwnershipWithSignature", values: [
        PromiseOrValue<BytesLike>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BytesLike>,
        PromiseOrValue<BytesLike>
    ]): string;
    encodeFunctionData(functionFragment: "voteInFavorForceSetGovernor", values: [VoteStruct]): string;
    encodeFunctionData(functionFragment: "voteInFavorForceSetGovernorWithSig", values: [VoteStruct[], PromiseOrValue<BytesLike>[]]): string;
    encodeFunctionData(functionFragment: "voterCount", values?: undefined): string;
    encodeFunctionData(functionFragment: "voterMerkleRoot", values?: undefined): string;
    decodeFunctionResult(functionFragment: "averageSessionLengthInMillisecs", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "createVote", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "currentVotingPeriod", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "governor", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "isGovernor", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "isSignatureFromGovernor", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "isSignatureFromGovernorPrehashed", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "lastGovernorUpdateTime", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "recover", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "refreshNonce", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "sessionLengthMultiplier", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "transferOwnershipWithSignature", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "voteInFavorForceSetGovernor", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "voteInFavorForceSetGovernorWithSig", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "voterCount", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "voterMerkleRoot", data: BytesLike): Result;
    events: {
        "GovernanceOwnershipTransferred(address,address,uint256)": EventFragment;
        "RecoveredAddress(address)": EventFragment;
    };
    getEvent(nameOrSignatureOrTopic: "GovernanceOwnershipTransferred"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "RecoveredAddress"): EventFragment;
}
export interface GovernanceOwnershipTransferredEventObject {
    previousOwner: string;
    newOwner: string;
    timestamp: BigNumber;
}
export type GovernanceOwnershipTransferredEvent = TypedEvent<[
    string,
    string,
    BigNumber
], GovernanceOwnershipTransferredEventObject>;
export type GovernanceOwnershipTransferredEventFilter = TypedEventFilter<GovernanceOwnershipTransferredEvent>;
export interface RecoveredAddressEventObject {
    recovered: string;
}
export type RecoveredAddressEvent = TypedEvent<[
    string
], RecoveredAddressEventObject>;
export type RecoveredAddressEventFilter = TypedEventFilter<RecoveredAddressEvent>;
export interface Governable extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: GovernableInterface;
    queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
    listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
    listeners(eventName?: string): Array<Listener>;
    removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
    removeAllListeners(eventName?: string): this;
    off: OnEvent<this>;
    on: OnEvent<this>;
    once: OnEvent<this>;
    removeListener: OnEvent<this>;
    functions: {
        averageSessionLengthInMillisecs(overrides?: CallOverrides): Promise<[BigNumber]>;
        createVote(_leafIndex: PromiseOrValue<BigNumberish>, _proposedGovernor: PromiseOrValue<string>, _siblingPathNodes: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<[VoteStructOutput]>;
        currentVotingPeriod(overrides?: CallOverrides): Promise<[BigNumber]>;
        governor(overrides?: CallOverrides): Promise<[string]>;
        isGovernor(overrides?: CallOverrides): Promise<[boolean]>;
        isSignatureFromGovernor(data: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[boolean]>;
        isSignatureFromGovernorPrehashed(hashedData: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[boolean]>;
        lastGovernorUpdateTime(overrides?: CallOverrides): Promise<[BigNumber]>;
        recover(data: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[string]>;
        refreshNonce(overrides?: CallOverrides): Promise<[number]>;
        renounceOwnership(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        sessionLengthMultiplier(overrides?: CallOverrides): Promise<[BigNumber]>;
        transferOwnership(newOwner: PromiseOrValue<string>, nonce: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        transferOwnershipWithSignature(_voterMerkleRoot: PromiseOrValue<BytesLike>, _averageSessionLengthInMillisecs: PromiseOrValue<BigNumberish>, _voterCount: PromiseOrValue<BigNumberish>, _nonce: PromiseOrValue<BigNumberish>, _publicKey: PromiseOrValue<BytesLike>, _sig: PromiseOrValue<BytesLike>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        voteInFavorForceSetGovernor(vote: VoteStruct, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        voteInFavorForceSetGovernorWithSig(votes: VoteStruct[], sigs: PromiseOrValue<BytesLike>[], overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        voterCount(overrides?: CallOverrides): Promise<[number]>;
        voterMerkleRoot(overrides?: CallOverrides): Promise<[string]>;
    };
    averageSessionLengthInMillisecs(overrides?: CallOverrides): Promise<BigNumber>;
    createVote(_leafIndex: PromiseOrValue<BigNumberish>, _proposedGovernor: PromiseOrValue<string>, _siblingPathNodes: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<VoteStructOutput>;
    currentVotingPeriod(overrides?: CallOverrides): Promise<BigNumber>;
    governor(overrides?: CallOverrides): Promise<string>;
    isGovernor(overrides?: CallOverrides): Promise<boolean>;
    isSignatureFromGovernor(data: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<boolean>;
    isSignatureFromGovernorPrehashed(hashedData: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<boolean>;
    lastGovernorUpdateTime(overrides?: CallOverrides): Promise<BigNumber>;
    recover(data: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>;
    refreshNonce(overrides?: CallOverrides): Promise<number>;
    renounceOwnership(overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    sessionLengthMultiplier(overrides?: CallOverrides): Promise<BigNumber>;
    transferOwnership(newOwner: PromiseOrValue<string>, nonce: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    transferOwnershipWithSignature(_voterMerkleRoot: PromiseOrValue<BytesLike>, _averageSessionLengthInMillisecs: PromiseOrValue<BigNumberish>, _voterCount: PromiseOrValue<BigNumberish>, _nonce: PromiseOrValue<BigNumberish>, _publicKey: PromiseOrValue<BytesLike>, _sig: PromiseOrValue<BytesLike>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    voteInFavorForceSetGovernor(vote: VoteStruct, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    voteInFavorForceSetGovernorWithSig(votes: VoteStruct[], sigs: PromiseOrValue<BytesLike>[], overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    voterCount(overrides?: CallOverrides): Promise<number>;
    voterMerkleRoot(overrides?: CallOverrides): Promise<string>;
    callStatic: {
        averageSessionLengthInMillisecs(overrides?: CallOverrides): Promise<BigNumber>;
        createVote(_leafIndex: PromiseOrValue<BigNumberish>, _proposedGovernor: PromiseOrValue<string>, _siblingPathNodes: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<VoteStructOutput>;
        currentVotingPeriod(overrides?: CallOverrides): Promise<BigNumber>;
        governor(overrides?: CallOverrides): Promise<string>;
        isGovernor(overrides?: CallOverrides): Promise<boolean>;
        isSignatureFromGovernor(data: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<boolean>;
        isSignatureFromGovernorPrehashed(hashedData: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<boolean>;
        lastGovernorUpdateTime(overrides?: CallOverrides): Promise<BigNumber>;
        recover(data: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>;
        refreshNonce(overrides?: CallOverrides): Promise<number>;
        renounceOwnership(overrides?: CallOverrides): Promise<void>;
        sessionLengthMultiplier(overrides?: CallOverrides): Promise<BigNumber>;
        transferOwnership(newOwner: PromiseOrValue<string>, nonce: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
        transferOwnershipWithSignature(_voterMerkleRoot: PromiseOrValue<BytesLike>, _averageSessionLengthInMillisecs: PromiseOrValue<BigNumberish>, _voterCount: PromiseOrValue<BigNumberish>, _nonce: PromiseOrValue<BigNumberish>, _publicKey: PromiseOrValue<BytesLike>, _sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>;
        voteInFavorForceSetGovernor(vote: VoteStruct, overrides?: CallOverrides): Promise<void>;
        voteInFavorForceSetGovernorWithSig(votes: VoteStruct[], sigs: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<void>;
        voterCount(overrides?: CallOverrides): Promise<number>;
        voterMerkleRoot(overrides?: CallOverrides): Promise<string>;
    };
    filters: {
        "GovernanceOwnershipTransferred(address,address,uint256)"(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null, timestamp?: null): GovernanceOwnershipTransferredEventFilter;
        GovernanceOwnershipTransferred(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null, timestamp?: null): GovernanceOwnershipTransferredEventFilter;
        "RecoveredAddress(address)"(recovered?: PromiseOrValue<string> | null): RecoveredAddressEventFilter;
        RecoveredAddress(recovered?: PromiseOrValue<string> | null): RecoveredAddressEventFilter;
    };
    estimateGas: {
        averageSessionLengthInMillisecs(overrides?: CallOverrides): Promise<BigNumber>;
        createVote(_leafIndex: PromiseOrValue<BigNumberish>, _proposedGovernor: PromiseOrValue<string>, _siblingPathNodes: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<BigNumber>;
        currentVotingPeriod(overrides?: CallOverrides): Promise<BigNumber>;
        governor(overrides?: CallOverrides): Promise<BigNumber>;
        isGovernor(overrides?: CallOverrides): Promise<BigNumber>;
        isSignatureFromGovernor(data: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
        isSignatureFromGovernorPrehashed(hashedData: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
        lastGovernorUpdateTime(overrides?: CallOverrides): Promise<BigNumber>;
        recover(data: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
        refreshNonce(overrides?: CallOverrides): Promise<BigNumber>;
        renounceOwnership(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        sessionLengthMultiplier(overrides?: CallOverrides): Promise<BigNumber>;
        transferOwnership(newOwner: PromiseOrValue<string>, nonce: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        transferOwnershipWithSignature(_voterMerkleRoot: PromiseOrValue<BytesLike>, _averageSessionLengthInMillisecs: PromiseOrValue<BigNumberish>, _voterCount: PromiseOrValue<BigNumberish>, _nonce: PromiseOrValue<BigNumberish>, _publicKey: PromiseOrValue<BytesLike>, _sig: PromiseOrValue<BytesLike>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        voteInFavorForceSetGovernor(vote: VoteStruct, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        voteInFavorForceSetGovernorWithSig(votes: VoteStruct[], sigs: PromiseOrValue<BytesLike>[], overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        voterCount(overrides?: CallOverrides): Promise<BigNumber>;
        voterMerkleRoot(overrides?: CallOverrides): Promise<BigNumber>;
    };
    populateTransaction: {
        averageSessionLengthInMillisecs(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        createVote(_leafIndex: PromiseOrValue<BigNumberish>, _proposedGovernor: PromiseOrValue<string>, _siblingPathNodes: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<PopulatedTransaction>;
        currentVotingPeriod(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        governor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        isGovernor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        isSignatureFromGovernor(data: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        isSignatureFromGovernorPrehashed(hashedData: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        lastGovernorUpdateTime(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        recover(data: PromiseOrValue<BytesLike>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        refreshNonce(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        renounceOwnership(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        sessionLengthMultiplier(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        transferOwnership(newOwner: PromiseOrValue<string>, nonce: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        transferOwnershipWithSignature(_voterMerkleRoot: PromiseOrValue<BytesLike>, _averageSessionLengthInMillisecs: PromiseOrValue<BigNumberish>, _voterCount: PromiseOrValue<BigNumberish>, _nonce: PromiseOrValue<BigNumberish>, _publicKey: PromiseOrValue<BytesLike>, _sig: PromiseOrValue<BytesLike>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        voteInFavorForceSetGovernor(vote: VoteStruct, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        voteInFavorForceSetGovernorWithSig(votes: VoteStruct[], sigs: PromiseOrValue<BytesLike>[], overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        voterCount(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        voterMerkleRoot(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    };
}
