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 IMXFarmInterface extends utils.Interface {
    functions: {
        "_pair()": FunctionFragment;
        "accrueInterest()": FunctionFragment;
        "collateralToken()": FunctionFragment;
        "farmRouter()": FunctionFragment;
        "flip()": FunctionFragment;
        "getUnderlyingShortReserves()": FunctionFragment;
        "harvestIsEnabled()": FunctionFragment;
        "impermaxBorrow(address,address,uint256,bytes)": FunctionFragment;
        "impermaxChef()": FunctionFragment;
        "impermaxRedeem(address,uint256,bytes)": FunctionFragment;
        "loanHealth()": FunctionFragment;
        "pair()": FunctionFragment;
        "pendingHarvest()": FunctionFragment;
        "sBorrowable()": FunctionFragment;
        "safetyMarginSqrt()": FunctionFragment;
        "short()": FunctionFragment;
        "shortToUnderlyingOracle(uint256)": FunctionFragment;
        "shortToUnderlyingOracleUpdate(uint256)": FunctionFragment;
        "uBorrowable()": FunctionFragment;
        "underlying()": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "_pair" | "accrueInterest" | "collateralToken" | "farmRouter" | "flip" | "getUnderlyingShortReserves" | "harvestIsEnabled" | "impermaxBorrow" | "impermaxChef" | "impermaxRedeem" | "loanHealth" | "pair" | "pendingHarvest" | "sBorrowable" | "safetyMarginSqrt" | "short" | "shortToUnderlyingOracle" | "shortToUnderlyingOracleUpdate" | "uBorrowable" | "underlying"): FunctionFragment;
    encodeFunctionData(functionFragment: "_pair", values?: undefined): string;
    encodeFunctionData(functionFragment: "accrueInterest", values?: undefined): string;
    encodeFunctionData(functionFragment: "collateralToken", values?: undefined): string;
    encodeFunctionData(functionFragment: "farmRouter", values?: undefined): string;
    encodeFunctionData(functionFragment: "flip", values?: undefined): string;
    encodeFunctionData(functionFragment: "getUnderlyingShortReserves", values?: undefined): string;
    encodeFunctionData(functionFragment: "harvestIsEnabled", values?: undefined): string;
    encodeFunctionData(functionFragment: "impermaxBorrow", values: [
        PromiseOrValue<string>,
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BytesLike>
    ]): string;
    encodeFunctionData(functionFragment: "impermaxChef", values?: undefined): string;
    encodeFunctionData(functionFragment: "impermaxRedeem", values: [
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BytesLike>
    ]): string;
    encodeFunctionData(functionFragment: "loanHealth", values?: undefined): string;
    encodeFunctionData(functionFragment: "pair", values?: undefined): string;
    encodeFunctionData(functionFragment: "pendingHarvest", values?: undefined): string;
    encodeFunctionData(functionFragment: "sBorrowable", values?: undefined): string;
    encodeFunctionData(functionFragment: "safetyMarginSqrt", values?: undefined): string;
    encodeFunctionData(functionFragment: "short", values?: undefined): string;
    encodeFunctionData(functionFragment: "shortToUnderlyingOracle", values: [PromiseOrValue<BigNumberish>]): string;
    encodeFunctionData(functionFragment: "shortToUnderlyingOracleUpdate", values: [PromiseOrValue<BigNumberish>]): string;
    encodeFunctionData(functionFragment: "uBorrowable", values?: undefined): string;
    encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
    decodeFunctionResult(functionFragment: "_pair", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "accrueInterest", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "collateralToken", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "farmRouter", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "flip", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getUnderlyingShortReserves", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "harvestIsEnabled", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "impermaxBorrow", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "impermaxChef", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "impermaxRedeem", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "loanHealth", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "pair", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "pendingHarvest", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "sBorrowable", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "safetyMarginSqrt", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "short", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "shortToUnderlyingOracle", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "shortToUnderlyingOracleUpdate", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "uBorrowable", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
    events: {
        "HarvestedToken(address,uint256)": EventFragment;
    };
    getEvent(nameOrSignatureOrTopic: "HarvestedToken"): EventFragment;
}
export interface HarvestedTokenEventObject {
    token: string;
    amount: BigNumber;
}
export type HarvestedTokenEvent = TypedEvent<[
    string,
    BigNumber
], HarvestedTokenEventObject>;
export type HarvestedTokenEventFilter = TypedEventFilter<HarvestedTokenEvent>;
export interface IMXFarm extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: IMXFarmInterface;
    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: {
        _pair(overrides?: CallOverrides): Promise<[string]>;
        accrueInterest(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        collateralToken(overrides?: CallOverrides): Promise<[string]>;
        farmRouter(overrides?: CallOverrides): Promise<[string]>;
        flip(overrides?: CallOverrides): Promise<[boolean]>;
        getUnderlyingShortReserves(overrides?: CallOverrides): Promise<[
            BigNumber,
            BigNumber
        ] & {
            reserveA: BigNumber;
            reserveB: BigNumber;
        }>;
        harvestIsEnabled(overrides?: CallOverrides): Promise<[boolean]>;
        impermaxBorrow(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, arg2: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        impermaxChef(overrides?: CallOverrides): Promise<[string]>;
        impermaxRedeem(arg0: PromiseOrValue<string>, redeemAmount: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        loanHealth(overrides?: CallOverrides): Promise<[BigNumber]>;
        pair(overrides?: CallOverrides): Promise<[string]>;
        pendingHarvest(overrides?: CallOverrides): Promise<[BigNumber] & {
            harvested: BigNumber;
        }>;
        sBorrowable(overrides?: CallOverrides): Promise<[string]>;
        safetyMarginSqrt(overrides?: CallOverrides): Promise<[BigNumber]>;
        short(overrides?: CallOverrides): Promise<[string]>;
        shortToUnderlyingOracle(amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BigNumber]>;
        shortToUnderlyingOracleUpdate(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        uBorrowable(overrides?: CallOverrides): Promise<[string]>;
        underlying(overrides?: CallOverrides): Promise<[string]>;
    };
    _pair(overrides?: CallOverrides): Promise<string>;
    accrueInterest(overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    collateralToken(overrides?: CallOverrides): Promise<string>;
    farmRouter(overrides?: CallOverrides): Promise<string>;
    flip(overrides?: CallOverrides): Promise<boolean>;
    getUnderlyingShortReserves(overrides?: CallOverrides): Promise<[
        BigNumber,
        BigNumber
    ] & {
        reserveA: BigNumber;
        reserveB: BigNumber;
    }>;
    harvestIsEnabled(overrides?: CallOverrides): Promise<boolean>;
    impermaxBorrow(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, arg2: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    impermaxChef(overrides?: CallOverrides): Promise<string>;
    impermaxRedeem(arg0: PromiseOrValue<string>, redeemAmount: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    loanHealth(overrides?: CallOverrides): Promise<BigNumber>;
    pair(overrides?: CallOverrides): Promise<string>;
    pendingHarvest(overrides?: CallOverrides): Promise<BigNumber>;
    sBorrowable(overrides?: CallOverrides): Promise<string>;
    safetyMarginSqrt(overrides?: CallOverrides): Promise<BigNumber>;
    short(overrides?: CallOverrides): Promise<string>;
    shortToUnderlyingOracle(amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
    shortToUnderlyingOracleUpdate(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    uBorrowable(overrides?: CallOverrides): Promise<string>;
    underlying(overrides?: CallOverrides): Promise<string>;
    callStatic: {
        _pair(overrides?: CallOverrides): Promise<string>;
        accrueInterest(overrides?: CallOverrides): Promise<void>;
        collateralToken(overrides?: CallOverrides): Promise<string>;
        farmRouter(overrides?: CallOverrides): Promise<string>;
        flip(overrides?: CallOverrides): Promise<boolean>;
        getUnderlyingShortReserves(overrides?: CallOverrides): Promise<[
            BigNumber,
            BigNumber
        ] & {
            reserveA: BigNumber;
            reserveB: BigNumber;
        }>;
        harvestIsEnabled(overrides?: CallOverrides): Promise<boolean>;
        impermaxBorrow(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, arg2: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>;
        impermaxChef(overrides?: CallOverrides): Promise<string>;
        impermaxRedeem(arg0: PromiseOrValue<string>, redeemAmount: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>;
        loanHealth(overrides?: CallOverrides): Promise<BigNumber>;
        pair(overrides?: CallOverrides): Promise<string>;
        pendingHarvest(overrides?: CallOverrides): Promise<BigNumber>;
        sBorrowable(overrides?: CallOverrides): Promise<string>;
        safetyMarginSqrt(overrides?: CallOverrides): Promise<BigNumber>;
        short(overrides?: CallOverrides): Promise<string>;
        shortToUnderlyingOracle(amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        shortToUnderlyingOracleUpdate(amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        uBorrowable(overrides?: CallOverrides): Promise<string>;
        underlying(overrides?: CallOverrides): Promise<string>;
    };
    filters: {
        "HarvestedToken(address,uint256)"(token?: PromiseOrValue<string> | null, amount?: null): HarvestedTokenEventFilter;
        HarvestedToken(token?: PromiseOrValue<string> | null, amount?: null): HarvestedTokenEventFilter;
    };
    estimateGas: {
        _pair(overrides?: CallOverrides): Promise<BigNumber>;
        accrueInterest(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        collateralToken(overrides?: CallOverrides): Promise<BigNumber>;
        farmRouter(overrides?: CallOverrides): Promise<BigNumber>;
        flip(overrides?: CallOverrides): Promise<BigNumber>;
        getUnderlyingShortReserves(overrides?: CallOverrides): Promise<BigNumber>;
        harvestIsEnabled(overrides?: CallOverrides): Promise<BigNumber>;
        impermaxBorrow(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, arg2: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        impermaxChef(overrides?: CallOverrides): Promise<BigNumber>;
        impermaxRedeem(arg0: PromiseOrValue<string>, redeemAmount: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        loanHealth(overrides?: CallOverrides): Promise<BigNumber>;
        pair(overrides?: CallOverrides): Promise<BigNumber>;
        pendingHarvest(overrides?: CallOverrides): Promise<BigNumber>;
        sBorrowable(overrides?: CallOverrides): Promise<BigNumber>;
        safetyMarginSqrt(overrides?: CallOverrides): Promise<BigNumber>;
        short(overrides?: CallOverrides): Promise<BigNumber>;
        shortToUnderlyingOracle(amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        shortToUnderlyingOracleUpdate(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        uBorrowable(overrides?: CallOverrides): Promise<BigNumber>;
        underlying(overrides?: CallOverrides): Promise<BigNumber>;
    };
    populateTransaction: {
        _pair(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        accrueInterest(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        collateralToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        farmRouter(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        flip(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getUnderlyingShortReserves(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        harvestIsEnabled(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        impermaxBorrow(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, arg2: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        impermaxChef(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        impermaxRedeem(arg0: PromiseOrValue<string>, redeemAmount: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        loanHealth(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        pair(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        pendingHarvest(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        sBorrowable(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        safetyMarginSqrt(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        short(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        shortToUnderlyingOracle(amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        shortToUnderlyingOracleUpdate(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        uBorrowable(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        underlying(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    };
}
