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 ISectGrailInterface extends utils.Interface {
    functions: {
        "allocateToPosition(address,uint256,uint256)": FunctionFragment;
        "deallocateFromPosition(address,uint256,uint256)": FunctionFragment;
        "depositIntoFarm(address,uint256,uint256)": FunctionFragment;
        "getAllocations(address)": FunctionFragment;
        "getFarmLp(address,uint256)": FunctionFragment;
        "getNonAllocatedBalance(address)": FunctionFragment;
        "grailToken()": FunctionFragment;
        "harvestFarm(address,uint256)": FunctionFragment;
        "updateWhitelist(address,bool)": FunctionFragment;
        "whitelist(address)": FunctionFragment;
        "withdrawFromFarm(address,uint256,uint256)": FunctionFragment;
        "xGrailToken()": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "allocateToPosition" | "deallocateFromPosition" | "depositIntoFarm" | "getAllocations" | "getFarmLp" | "getNonAllocatedBalance" | "grailToken" | "harvestFarm" | "updateWhitelist" | "whitelist" | "withdrawFromFarm" | "xGrailToken"): FunctionFragment;
    encodeFunctionData(functionFragment: "allocateToPosition", values: [
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>
    ]): string;
    encodeFunctionData(functionFragment: "deallocateFromPosition", values: [
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>
    ]): string;
    encodeFunctionData(functionFragment: "depositIntoFarm", values: [
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>
    ]): string;
    encodeFunctionData(functionFragment: "getAllocations", values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "getFarmLp", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
    encodeFunctionData(functionFragment: "getNonAllocatedBalance", values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "grailToken", values?: undefined): string;
    encodeFunctionData(functionFragment: "harvestFarm", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
    encodeFunctionData(functionFragment: "updateWhitelist", values: [PromiseOrValue<string>, PromiseOrValue<boolean>]): string;
    encodeFunctionData(functionFragment: "whitelist", values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "withdrawFromFarm", values: [
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>
    ]): string;
    encodeFunctionData(functionFragment: "xGrailToken", values?: undefined): string;
    decodeFunctionResult(functionFragment: "allocateToPosition", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "deallocateFromPosition", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "depositIntoFarm", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getAllocations", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getFarmLp", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getNonAllocatedBalance", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "grailToken", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "harvestFarm", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "updateWhitelist", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "withdrawFromFarm", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "xGrailToken", data: BytesLike): Result;
    events: {
        "Allocate(address,address,uint256,bytes)": EventFragment;
        "Deallocate(address,address,uint256,bytes)": EventFragment;
        "DepositIntoFarm(address,address,uint256,uint256)": EventFragment;
        "HarvestFarm(address,address,uint256,uint256[])": EventFragment;
        "UpdateWhitelist(address,bool)": EventFragment;
        "WithdrawFromFarm(address,address,uint256,uint256)": EventFragment;
    };
    getEvent(nameOrSignatureOrTopic: "Allocate"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "Deallocate"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "DepositIntoFarm"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "HarvestFarm"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "UpdateWhitelist"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "WithdrawFromFarm"): EventFragment;
}
export interface AllocateEventObject {
    user: string;
    usageAddress: string;
    amount: BigNumber;
    usageData: string;
}
export type AllocateEvent = TypedEvent<[
    string,
    string,
    BigNumber,
    string
], AllocateEventObject>;
export type AllocateEventFilter = TypedEventFilter<AllocateEvent>;
export interface DeallocateEventObject {
    user: string;
    usageAddress: string;
    amount: BigNumber;
    usageData: string;
}
export type DeallocateEvent = TypedEvent<[
    string,
    string,
    BigNumber,
    string
], DeallocateEventObject>;
export type DeallocateEventFilter = TypedEventFilter<DeallocateEvent>;
export interface DepositIntoFarmEventObject {
    user: string;
    farm: string;
    positionId: BigNumber;
    amount: BigNumber;
}
export type DepositIntoFarmEvent = TypedEvent<[
    string,
    string,
    BigNumber,
    BigNumber
], DepositIntoFarmEventObject>;
export type DepositIntoFarmEventFilter = TypedEventFilter<DepositIntoFarmEvent>;
export interface HarvestFarmEventObject {
    user: string;
    farm: string;
    positionId: BigNumber;
    harvested: BigNumber[];
}
export type HarvestFarmEvent = TypedEvent<[
    string,
    string,
    BigNumber,
    BigNumber[]
], HarvestFarmEventObject>;
export type HarvestFarmEventFilter = TypedEventFilter<HarvestFarmEvent>;
export interface UpdateWhitelistEventObject {
    contractAddr: string;
    isWhitelisted: boolean;
}
export type UpdateWhitelistEvent = TypedEvent<[
    string,
    boolean
], UpdateWhitelistEventObject>;
export type UpdateWhitelistEventFilter = TypedEventFilter<UpdateWhitelistEvent>;
export interface WithdrawFromFarmEventObject {
    user: string;
    farm: string;
    positionId: BigNumber;
    amount: BigNumber;
}
export type WithdrawFromFarmEvent = TypedEvent<[
    string,
    string,
    BigNumber,
    BigNumber
], WithdrawFromFarmEventObject>;
export type WithdrawFromFarmEventFilter = TypedEventFilter<WithdrawFromFarmEvent>;
export interface ISectGrail extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: ISectGrailInterface;
    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: {
        allocateToPosition(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        deallocateFromPosition(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        depositIntoFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        getAllocations(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
        getFarmLp(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BigNumber]>;
        getNonAllocatedBalance(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
        grailToken(overrides?: CallOverrides): Promise<[string]>;
        harvestFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        updateWhitelist(contractAddr: PromiseOrValue<string>, isWhitelisted: PromiseOrValue<boolean>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        whitelist(contractAddr: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean]>;
        withdrawFromFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        xGrailToken(overrides?: CallOverrides): Promise<[string]>;
    };
    allocateToPosition(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    deallocateFromPosition(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    depositIntoFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    getAllocations(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
    getFarmLp(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
    getNonAllocatedBalance(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
    grailToken(overrides?: CallOverrides): Promise<string>;
    harvestFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    updateWhitelist(contractAddr: PromiseOrValue<string>, isWhitelisted: PromiseOrValue<boolean>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    whitelist(contractAddr: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
    withdrawFromFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    xGrailToken(overrides?: CallOverrides): Promise<string>;
    callStatic: {
        allocateToPosition(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
        deallocateFromPosition(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
        depositIntoFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        getAllocations(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        getFarmLp(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        getNonAllocatedBalance(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        grailToken(overrides?: CallOverrides): Promise<string>;
        harvestFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber[]>;
        updateWhitelist(contractAddr: PromiseOrValue<string>, isWhitelisted: PromiseOrValue<boolean>, overrides?: CallOverrides): Promise<void>;
        whitelist(contractAddr: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
        withdrawFromFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        xGrailToken(overrides?: CallOverrides): Promise<string>;
    };
    filters: {
        "Allocate(address,address,uint256,bytes)"(user?: PromiseOrValue<string> | null, usageAddress?: PromiseOrValue<string> | null, amount?: null, usageData?: null): AllocateEventFilter;
        Allocate(user?: PromiseOrValue<string> | null, usageAddress?: PromiseOrValue<string> | null, amount?: null, usageData?: null): AllocateEventFilter;
        "Deallocate(address,address,uint256,bytes)"(user?: PromiseOrValue<string> | null, usageAddress?: PromiseOrValue<string> | null, amount?: null, usageData?: null): DeallocateEventFilter;
        Deallocate(user?: PromiseOrValue<string> | null, usageAddress?: PromiseOrValue<string> | null, amount?: null, usageData?: null): DeallocateEventFilter;
        "DepositIntoFarm(address,address,uint256,uint256)"(user?: PromiseOrValue<string> | null, farm?: PromiseOrValue<string> | null, positionId?: PromiseOrValue<BigNumberish> | null, amount?: null): DepositIntoFarmEventFilter;
        DepositIntoFarm(user?: PromiseOrValue<string> | null, farm?: PromiseOrValue<string> | null, positionId?: PromiseOrValue<BigNumberish> | null, amount?: null): DepositIntoFarmEventFilter;
        "HarvestFarm(address,address,uint256,uint256[])"(user?: PromiseOrValue<string> | null, farm?: PromiseOrValue<string> | null, positionId?: PromiseOrValue<BigNumberish> | null, harvested?: null): HarvestFarmEventFilter;
        HarvestFarm(user?: PromiseOrValue<string> | null, farm?: PromiseOrValue<string> | null, positionId?: PromiseOrValue<BigNumberish> | null, harvested?: null): HarvestFarmEventFilter;
        "UpdateWhitelist(address,bool)"(contractAddr?: PromiseOrValue<string> | null, isWhitelisted?: null): UpdateWhitelistEventFilter;
        UpdateWhitelist(contractAddr?: PromiseOrValue<string> | null, isWhitelisted?: null): UpdateWhitelistEventFilter;
        "WithdrawFromFarm(address,address,uint256,uint256)"(user?: PromiseOrValue<string> | null, farm?: PromiseOrValue<string> | null, positionId?: PromiseOrValue<BigNumberish> | null, amount?: null): WithdrawFromFarmEventFilter;
        WithdrawFromFarm(user?: PromiseOrValue<string> | null, farm?: PromiseOrValue<string> | null, positionId?: PromiseOrValue<BigNumberish> | null, amount?: null): WithdrawFromFarmEventFilter;
    };
    estimateGas: {
        allocateToPosition(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        deallocateFromPosition(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        depositIntoFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        getAllocations(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        getFarmLp(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        getNonAllocatedBalance(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        grailToken(overrides?: CallOverrides): Promise<BigNumber>;
        harvestFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        updateWhitelist(contractAddr: PromiseOrValue<string>, isWhitelisted: PromiseOrValue<boolean>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        whitelist(contractAddr: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        withdrawFromFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        xGrailToken(overrides?: CallOverrides): Promise<BigNumber>;
    };
    populateTransaction: {
        allocateToPosition(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        deallocateFromPosition(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        depositIntoFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        getAllocations(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getFarmLp(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getNonAllocatedBalance(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        grailToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        harvestFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        updateWhitelist(contractAddr: PromiseOrValue<string>, isWhitelisted: PromiseOrValue<boolean>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        whitelist(contractAddr: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        withdrawFromFarm(_farm: PromiseOrValue<string>, positionId: PromiseOrValue<BigNumberish>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        xGrailToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    };
}
