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 interface ProtocolRewardsInterface extends utils.Interface {
    functions: {
        "MAX_REWARDS()": FunctionFragment;
        "acceptOwnership()": FunctionFragment;
        "addRewardRound()": FunctionFragment;
        "currentBalance()": FunctionFragment;
        "earned(address)": FunctionFragment;
        "firstUnclaimedReward(address)": FunctionFragment;
        "getReward()": FunctionFragment;
        "getTotalRewards()": FunctionFragment;
        "lastRewardTime()": FunctionFragment;
        "manager()": FunctionFragment;
        "owner()": FunctionFragment;
        "pendingOwner()": FunctionFragment;
        "recoverERC20(address,uint256)": FunctionFragment;
        "rewards(uint256)": FunctionFragment;
        "rewardsToken()": FunctionFragment;
        "setManager(address)": FunctionFragment;
        "transferOwnership(address)": FunctionFragment;
        "veToken()": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "MAX_REWARDS" | "acceptOwnership" | "addRewardRound" | "currentBalance" | "earned" | "firstUnclaimedReward" | "getReward" | "getTotalRewards" | "lastRewardTime" | "manager" | "owner" | "pendingOwner" | "recoverERC20" | "rewards" | "rewardsToken" | "setManager" | "transferOwnership" | "veToken"): FunctionFragment;
    encodeFunctionData(functionFragment: "MAX_REWARDS", values?: undefined): string;
    encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
    encodeFunctionData(functionFragment: "addRewardRound", values?: undefined): string;
    encodeFunctionData(functionFragment: "currentBalance", values?: undefined): string;
    encodeFunctionData(functionFragment: "earned", values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "firstUnclaimedReward", values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "getReward", values?: undefined): string;
    encodeFunctionData(functionFragment: "getTotalRewards", values?: undefined): string;
    encodeFunctionData(functionFragment: "lastRewardTime", values?: undefined): string;
    encodeFunctionData(functionFragment: "manager", values?: undefined): string;
    encodeFunctionData(functionFragment: "owner", values?: undefined): string;
    encodeFunctionData(functionFragment: "pendingOwner", values?: undefined): string;
    encodeFunctionData(functionFragment: "recoverERC20", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
    encodeFunctionData(functionFragment: "rewards", values: [PromiseOrValue<BigNumberish>]): string;
    encodeFunctionData(functionFragment: "rewardsToken", values?: undefined): string;
    encodeFunctionData(functionFragment: "setManager", values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "transferOwnership", values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "veToken", values?: undefined): string;
    decodeFunctionResult(functionFragment: "MAX_REWARDS", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "addRewardRound", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "currentBalance", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "earned", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "firstUnclaimedReward", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getReward", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getTotalRewards", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "lastRewardTime", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "manager", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "pendingOwner", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "recoverERC20", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "rewards", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "rewardsToken", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "setManager", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "veToken", data: BytesLike): Result;
    events: {
        "ChangeWhitelistERC20(address,bool)": EventFragment;
        "OwnershipTransferInitiated(address,address)": EventFragment;
        "OwnershipTransferred(address,address)": EventFragment;
        "Recovered(address,uint256)": EventFragment;
        "RewardAdded(uint256)": EventFragment;
        "RewardPaid(address,uint256)": EventFragment;
    };
    getEvent(nameOrSignatureOrTopic: "ChangeWhitelistERC20"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "OwnershipTransferInitiated"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "Recovered"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "RewardAdded"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "RewardPaid"): EventFragment;
}
export interface ChangeWhitelistERC20EventObject {
    tokenAddress: string;
    whitelistState: boolean;
}
export type ChangeWhitelistERC20Event = TypedEvent<[
    string,
    boolean
], ChangeWhitelistERC20EventObject>;
export type ChangeWhitelistERC20EventFilter = TypedEventFilter<ChangeWhitelistERC20Event>;
export interface OwnershipTransferInitiatedEventObject {
    owner: string;
    pendingOwner: string;
}
export type OwnershipTransferInitiatedEvent = TypedEvent<[
    string,
    string
], OwnershipTransferInitiatedEventObject>;
export type OwnershipTransferInitiatedEventFilter = TypedEventFilter<OwnershipTransferInitiatedEvent>;
export interface OwnershipTransferredEventObject {
    oldOwner: string;
    newOwner: string;
}
export type OwnershipTransferredEvent = TypedEvent<[
    string,
    string
], OwnershipTransferredEventObject>;
export type OwnershipTransferredEventFilter = TypedEventFilter<OwnershipTransferredEvent>;
export interface RecoveredEventObject {
    token: string;
    amount: BigNumber;
}
export type RecoveredEvent = TypedEvent<[
    string,
    BigNumber
], RecoveredEventObject>;
export type RecoveredEventFilter = TypedEventFilter<RecoveredEvent>;
export interface RewardAddedEventObject {
    reward: BigNumber;
}
export type RewardAddedEvent = TypedEvent<[BigNumber], RewardAddedEventObject>;
export type RewardAddedEventFilter = TypedEventFilter<RewardAddedEvent>;
export interface RewardPaidEventObject {
    user: string;
    reward: BigNumber;
}
export type RewardPaidEvent = TypedEvent<[
    string,
    BigNumber
], RewardPaidEventObject>;
export type RewardPaidEventFilter = TypedEventFilter<RewardPaidEvent>;
export interface ProtocolRewards extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: ProtocolRewardsInterface;
    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: {
        MAX_REWARDS(overrides?: CallOverrides): Promise<[BigNumber]>;
        acceptOwnership(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        addRewardRound(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        currentBalance(overrides?: CallOverrides): Promise<[BigNumber]>;
        earned(owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
        firstUnclaimedReward(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
        getReward(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        getTotalRewards(overrides?: CallOverrides): Promise<[BigNumber]>;
        lastRewardTime(overrides?: CallOverrides): Promise<[BigNumber]>;
        manager(overrides?: CallOverrides): Promise<[string]>;
        owner(overrides?: CallOverrides): Promise<[string]>;
        pendingOwner(overrides?: CallOverrides): Promise<[string]>;
        recoverERC20(tokenAddress: PromiseOrValue<string>, tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        rewards(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
            BigNumber,
            BigNumber
        ] & {
            blockNumber: BigNumber;
            amount: BigNumber;
        }>;
        rewardsToken(overrides?: CallOverrides): Promise<[string]>;
        setManager(_manager: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        transferOwnership(_pendingOwner: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        veToken(overrides?: CallOverrides): Promise<[string]>;
    };
    MAX_REWARDS(overrides?: CallOverrides): Promise<BigNumber>;
    acceptOwnership(overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    addRewardRound(overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    currentBalance(overrides?: CallOverrides): Promise<BigNumber>;
    earned(owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
    firstUnclaimedReward(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
    getReward(overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    getTotalRewards(overrides?: CallOverrides): Promise<BigNumber>;
    lastRewardTime(overrides?: CallOverrides): Promise<BigNumber>;
    manager(overrides?: CallOverrides): Promise<string>;
    owner(overrides?: CallOverrides): Promise<string>;
    pendingOwner(overrides?: CallOverrides): Promise<string>;
    recoverERC20(tokenAddress: PromiseOrValue<string>, tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    rewards(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
        BigNumber,
        BigNumber
    ] & {
        blockNumber: BigNumber;
        amount: BigNumber;
    }>;
    rewardsToken(overrides?: CallOverrides): Promise<string>;
    setManager(_manager: PromiseOrValue<string>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    transferOwnership(_pendingOwner: PromiseOrValue<string>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    veToken(overrides?: CallOverrides): Promise<string>;
    callStatic: {
        MAX_REWARDS(overrides?: CallOverrides): Promise<BigNumber>;
        acceptOwnership(overrides?: CallOverrides): Promise<void>;
        addRewardRound(overrides?: CallOverrides): Promise<void>;
        currentBalance(overrides?: CallOverrides): Promise<BigNumber>;
        earned(owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        firstUnclaimedReward(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        getReward(overrides?: CallOverrides): Promise<void>;
        getTotalRewards(overrides?: CallOverrides): Promise<BigNumber>;
        lastRewardTime(overrides?: CallOverrides): Promise<BigNumber>;
        manager(overrides?: CallOverrides): Promise<string>;
        owner(overrides?: CallOverrides): Promise<string>;
        pendingOwner(overrides?: CallOverrides): Promise<string>;
        recoverERC20(tokenAddress: PromiseOrValue<string>, tokenAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
        rewards(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
            BigNumber,
            BigNumber
        ] & {
            blockNumber: BigNumber;
            amount: BigNumber;
        }>;
        rewardsToken(overrides?: CallOverrides): Promise<string>;
        setManager(_manager: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
        transferOwnership(_pendingOwner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
        veToken(overrides?: CallOverrides): Promise<string>;
    };
    filters: {
        "ChangeWhitelistERC20(address,bool)"(tokenAddress?: PromiseOrValue<string> | null, whitelistState?: null): ChangeWhitelistERC20EventFilter;
        ChangeWhitelistERC20(tokenAddress?: PromiseOrValue<string> | null, whitelistState?: null): ChangeWhitelistERC20EventFilter;
        "OwnershipTransferInitiated(address,address)"(owner?: null, pendingOwner?: null): OwnershipTransferInitiatedEventFilter;
        OwnershipTransferInitiated(owner?: null, pendingOwner?: null): OwnershipTransferInitiatedEventFilter;
        "OwnershipTransferred(address,address)"(oldOwner?: null, newOwner?: null): OwnershipTransferredEventFilter;
        OwnershipTransferred(oldOwner?: null, newOwner?: null): OwnershipTransferredEventFilter;
        "Recovered(address,uint256)"(token?: null, amount?: null): RecoveredEventFilter;
        Recovered(token?: null, amount?: null): RecoveredEventFilter;
        "RewardAdded(uint256)"(reward?: null): RewardAddedEventFilter;
        RewardAdded(reward?: null): RewardAddedEventFilter;
        "RewardPaid(address,uint256)"(user?: PromiseOrValue<string> | null, reward?: null): RewardPaidEventFilter;
        RewardPaid(user?: PromiseOrValue<string> | null, reward?: null): RewardPaidEventFilter;
    };
    estimateGas: {
        MAX_REWARDS(overrides?: CallOverrides): Promise<BigNumber>;
        acceptOwnership(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        addRewardRound(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        currentBalance(overrides?: CallOverrides): Promise<BigNumber>;
        earned(owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        firstUnclaimedReward(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        getReward(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        getTotalRewards(overrides?: CallOverrides): Promise<BigNumber>;
        lastRewardTime(overrides?: CallOverrides): Promise<BigNumber>;
        manager(overrides?: CallOverrides): Promise<BigNumber>;
        owner(overrides?: CallOverrides): Promise<BigNumber>;
        pendingOwner(overrides?: CallOverrides): Promise<BigNumber>;
        recoverERC20(tokenAddress: PromiseOrValue<string>, tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        rewards(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        rewardsToken(overrides?: CallOverrides): Promise<BigNumber>;
        setManager(_manager: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        transferOwnership(_pendingOwner: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        veToken(overrides?: CallOverrides): Promise<BigNumber>;
    };
    populateTransaction: {
        MAX_REWARDS(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        acceptOwnership(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        addRewardRound(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        currentBalance(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        earned(owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        firstUnclaimedReward(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getReward(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        getTotalRewards(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        lastRewardTime(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        manager(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        pendingOwner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        recoverERC20(tokenAddress: PromiseOrValue<string>, tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        rewards(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        rewardsToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        setManager(_manager: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        transferOwnership(_pendingOwner: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        veToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    };
}
