import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../common";
import type { FunctionFragment, Result } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers";
export interface ILiquidatorInterface extends utils.Interface {
    functions: {
        "addToAllowlist(address,address)": FunctionFragment;
        "liquidateBorrow(address,address,uint256,address)": FunctionFragment;
        "removeFromAllowlist(address,address)": FunctionFragment;
        "restrictLiquidation(address)": FunctionFragment;
        "setTreasuryPercent(uint256)": FunctionFragment;
        "treasuryPercentMantissa()": FunctionFragment;
        "unrestrictLiquidation(address)": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "addToAllowlist" | "liquidateBorrow" | "removeFromAllowlist" | "restrictLiquidation" | "setTreasuryPercent" | "treasuryPercentMantissa" | "unrestrictLiquidation"): FunctionFragment;
    encodeFunctionData(functionFragment: "addToAllowlist", values: [PromiseOrValue<string>, PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "liquidateBorrow", values: [
        PromiseOrValue<string>,
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<string>
    ]): string;
    encodeFunctionData(functionFragment: "removeFromAllowlist", values: [PromiseOrValue<string>, PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "restrictLiquidation", values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "setTreasuryPercent", values: [PromiseOrValue<BigNumberish>]): string;
    encodeFunctionData(functionFragment: "treasuryPercentMantissa", values?: undefined): string;
    encodeFunctionData(functionFragment: "unrestrictLiquidation", values: [PromiseOrValue<string>]): string;
    decodeFunctionResult(functionFragment: "addToAllowlist", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "liquidateBorrow", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "removeFromAllowlist", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "restrictLiquidation", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "setTreasuryPercent", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "treasuryPercentMantissa", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "unrestrictLiquidation", data: BytesLike): Result;
    events: {};
}
export interface ILiquidator extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: ILiquidatorInterface;
    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: {
        addToAllowlist(borrower: PromiseOrValue<string>, liquidator: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        liquidateBorrow(vToken: PromiseOrValue<string>, borrower: PromiseOrValue<string>, repayAmount: PromiseOrValue<BigNumberish>, vTokenCollateral: PromiseOrValue<string>, overrides?: PayableOverrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        removeFromAllowlist(borrower: PromiseOrValue<string>, liquidator: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        restrictLiquidation(borrower: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        setTreasuryPercent(newTreasuryPercentMantissa: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        treasuryPercentMantissa(overrides?: CallOverrides): Promise<[BigNumber]>;
        unrestrictLiquidation(borrower: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
    };
    addToAllowlist(borrower: PromiseOrValue<string>, liquidator: PromiseOrValue<string>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    liquidateBorrow(vToken: PromiseOrValue<string>, borrower: PromiseOrValue<string>, repayAmount: PromiseOrValue<BigNumberish>, vTokenCollateral: PromiseOrValue<string>, overrides?: PayableOverrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    removeFromAllowlist(borrower: PromiseOrValue<string>, liquidator: PromiseOrValue<string>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    restrictLiquidation(borrower: PromiseOrValue<string>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    setTreasuryPercent(newTreasuryPercentMantissa: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    treasuryPercentMantissa(overrides?: CallOverrides): Promise<BigNumber>;
    unrestrictLiquidation(borrower: PromiseOrValue<string>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    callStatic: {
        addToAllowlist(borrower: PromiseOrValue<string>, liquidator: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
        liquidateBorrow(vToken: PromiseOrValue<string>, borrower: PromiseOrValue<string>, repayAmount: PromiseOrValue<BigNumberish>, vTokenCollateral: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
        removeFromAllowlist(borrower: PromiseOrValue<string>, liquidator: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
        restrictLiquidation(borrower: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
        setTreasuryPercent(newTreasuryPercentMantissa: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
        treasuryPercentMantissa(overrides?: CallOverrides): Promise<BigNumber>;
        unrestrictLiquidation(borrower: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
    };
    filters: {};
    estimateGas: {
        addToAllowlist(borrower: PromiseOrValue<string>, liquidator: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        liquidateBorrow(vToken: PromiseOrValue<string>, borrower: PromiseOrValue<string>, repayAmount: PromiseOrValue<BigNumberish>, vTokenCollateral: PromiseOrValue<string>, overrides?: PayableOverrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        removeFromAllowlist(borrower: PromiseOrValue<string>, liquidator: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        restrictLiquidation(borrower: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        setTreasuryPercent(newTreasuryPercentMantissa: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        treasuryPercentMantissa(overrides?: CallOverrides): Promise<BigNumber>;
        unrestrictLiquidation(borrower: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
    };
    populateTransaction: {
        addToAllowlist(borrower: PromiseOrValue<string>, liquidator: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        liquidateBorrow(vToken: PromiseOrValue<string>, borrower: PromiseOrValue<string>, repayAmount: PromiseOrValue<BigNumberish>, vTokenCollateral: PromiseOrValue<string>, overrides?: PayableOverrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        removeFromAllowlist(borrower: PromiseOrValue<string>, liquidator: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        restrictLiquidation(borrower: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        setTreasuryPercent(newTreasuryPercentMantissa: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        treasuryPercentMantissa(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        unrestrictLiquidation(borrower: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
    };
}
