import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, PopulatedTransaction, Signer, utils } from "ethers";
import type { FunctionFragment, Result } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../../../../../../common";
export type RangeStruct = {
    lowerTick: PromiseOrValue<BigNumberish>;
    upperTick: PromiseOrValue<BigNumberish>;
    feeTier: PromiseOrValue<BigNumberish>;
};
export type RangeStructOutput = [number, number, number] & {
    lowerTick: number;
    upperTick: number;
    feeTier: number;
};
export type RangeWeightStruct = {
    range: RangeStruct;
    weight: PromiseOrValue<BigNumberish>;
};
export type RangeWeightStructOutput = [RangeStructOutput, BigNumber] & {
    range: RangeStructOutput;
    weight: BigNumber;
};
export type PositionLiquidityStruct = {
    liquidity: PromiseOrValue<BigNumberish>;
    range: RangeStruct;
};
export type PositionLiquidityStructOutput = [BigNumber, RangeStructOutput] & {
    liquidity: BigNumber;
    range: RangeStructOutput;
};
export type SwapPayloadStruct = {
    payload: PromiseOrValue<BytesLike>;
    router: PromiseOrValue<string>;
    amountIn: PromiseOrValue<BigNumberish>;
    expectedMinReturn: PromiseOrValue<BigNumberish>;
    zeroForOne: PromiseOrValue<boolean>;
};
export type SwapPayloadStructOutput = [
    string,
    string,
    BigNumber,
    BigNumber,
    boolean
] & {
    payload: string;
    router: string;
    amountIn: BigNumber;
    expectedMinReturn: BigNumber;
    zeroForOne: boolean;
};
export type RebalanceStruct = {
    burns: PositionLiquidityStruct[];
    mints: PositionLiquidityStruct[];
    swap: SwapPayloadStruct;
    minBurn0: PromiseOrValue<BigNumberish>;
    minBurn1: PromiseOrValue<BigNumberish>;
    minDeposit0: PromiseOrValue<BigNumberish>;
    minDeposit1: PromiseOrValue<BigNumberish>;
};
export type RebalanceStructOutput = [
    PositionLiquidityStructOutput[],
    PositionLiquidityStructOutput[],
    SwapPayloadStructOutput,
    BigNumber,
    BigNumber,
    BigNumber,
    BigNumber
] & {
    burns: PositionLiquidityStructOutput[];
    mints: PositionLiquidityStructOutput[];
    swap: SwapPayloadStructOutput;
    minBurn0: BigNumber;
    minBurn1: BigNumber;
    minDeposit0: BigNumber;
    minDeposit1: BigNumber;
};
export interface IArrakisV2ResolverInterface extends utils.Interface {
    functions: {
        "getAmountsForLiquidity(int24,int24,int24,uint128)": FunctionFragment;
        "getMintAmounts(address,uint256,uint256)": FunctionFragment;
        "getPositionId(address,int24,int24)": FunctionFragment;
        "standardRebalance(((int24,int24,uint24),uint256)[],address)": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "getAmountsForLiquidity" | "getMintAmounts" | "getPositionId" | "standardRebalance"): FunctionFragment;
    encodeFunctionData(functionFragment: "getAmountsForLiquidity", values: [
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>
    ]): string;
    encodeFunctionData(functionFragment: "getMintAmounts", values: [
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>
    ]): string;
    encodeFunctionData(functionFragment: "getPositionId", values: [
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>
    ]): string;
    encodeFunctionData(functionFragment: "standardRebalance", values: [RangeWeightStruct[], PromiseOrValue<string>]): string;
    decodeFunctionResult(functionFragment: "getAmountsForLiquidity", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getMintAmounts", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getPositionId", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "standardRebalance", data: BytesLike): Result;
    events: {};
}
export interface IArrakisV2Resolver extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: IArrakisV2ResolverInterface;
    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: {
        getAmountsForLiquidity(currentTick_: PromiseOrValue<BigNumberish>, lowerTick_: PromiseOrValue<BigNumberish>, upperTick_: PromiseOrValue<BigNumberish>, liquidity_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
            BigNumber,
            BigNumber
        ] & {
            amount0: BigNumber;
            amount1: BigNumber;
        }>;
        getMintAmounts(vaultV2_: PromiseOrValue<string>, amount0Max_: PromiseOrValue<BigNumberish>, amount1Max_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
            BigNumber,
            BigNumber,
            BigNumber
        ] & {
            amount0: BigNumber;
            amount1: BigNumber;
            mintAmount: BigNumber;
        }>;
        getPositionId(addr_: PromiseOrValue<string>, lowerTick_: PromiseOrValue<BigNumberish>, upperTick_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string] & {
            positionId: string;
        }>;
        standardRebalance(rangeWeights_: RangeWeightStruct[], vaultV2_: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
            RebalanceStructOutput
        ] & {
            rebalanceParams: RebalanceStructOutput;
        }>;
    };
    getAmountsForLiquidity(currentTick_: PromiseOrValue<BigNumberish>, lowerTick_: PromiseOrValue<BigNumberish>, upperTick_: PromiseOrValue<BigNumberish>, liquidity_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
        BigNumber,
        BigNumber
    ] & {
        amount0: BigNumber;
        amount1: BigNumber;
    }>;
    getMintAmounts(vaultV2_: PromiseOrValue<string>, amount0Max_: PromiseOrValue<BigNumberish>, amount1Max_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
        BigNumber,
        BigNumber,
        BigNumber
    ] & {
        amount0: BigNumber;
        amount1: BigNumber;
        mintAmount: BigNumber;
    }>;
    getPositionId(addr_: PromiseOrValue<string>, lowerTick_: PromiseOrValue<BigNumberish>, upperTick_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
    standardRebalance(rangeWeights_: RangeWeightStruct[], vaultV2_: PromiseOrValue<string>, overrides?: CallOverrides): Promise<RebalanceStructOutput>;
    callStatic: {
        getAmountsForLiquidity(currentTick_: PromiseOrValue<BigNumberish>, lowerTick_: PromiseOrValue<BigNumberish>, upperTick_: PromiseOrValue<BigNumberish>, liquidity_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
            BigNumber,
            BigNumber
        ] & {
            amount0: BigNumber;
            amount1: BigNumber;
        }>;
        getMintAmounts(vaultV2_: PromiseOrValue<string>, amount0Max_: PromiseOrValue<BigNumberish>, amount1Max_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
            BigNumber,
            BigNumber,
            BigNumber
        ] & {
            amount0: BigNumber;
            amount1: BigNumber;
            mintAmount: BigNumber;
        }>;
        getPositionId(addr_: PromiseOrValue<string>, lowerTick_: PromiseOrValue<BigNumberish>, upperTick_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
        standardRebalance(rangeWeights_: RangeWeightStruct[], vaultV2_: PromiseOrValue<string>, overrides?: CallOverrides): Promise<RebalanceStructOutput>;
    };
    filters: {};
    estimateGas: {
        getAmountsForLiquidity(currentTick_: PromiseOrValue<BigNumberish>, lowerTick_: PromiseOrValue<BigNumberish>, upperTick_: PromiseOrValue<BigNumberish>, liquidity_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        getMintAmounts(vaultV2_: PromiseOrValue<string>, amount0Max_: PromiseOrValue<BigNumberish>, amount1Max_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        getPositionId(addr_: PromiseOrValue<string>, lowerTick_: PromiseOrValue<BigNumberish>, upperTick_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        standardRebalance(rangeWeights_: RangeWeightStruct[], vaultV2_: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
    };
    populateTransaction: {
        getAmountsForLiquidity(currentTick_: PromiseOrValue<BigNumberish>, lowerTick_: PromiseOrValue<BigNumberish>, upperTick_: PromiseOrValue<BigNumberish>, liquidity_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getMintAmounts(vaultV2_: PromiseOrValue<string>, amount0Max_: PromiseOrValue<BigNumberish>, amount1Max_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getPositionId(addr_: PromiseOrValue<string>, lowerTick_: PromiseOrValue<BigNumberish>, upperTick_: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        standardRebalance(rangeWeights_: RangeWeightStruct[], vaultV2_: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    };
}
