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 interface DefiedgeTwapShareHelperInterface extends utils.Interface {
    functions: {
        "DIVISOR()": FunctionFragment;
        "calculateFeeShares(ITwapStrategyFactory,ITwapStrategyManager,uint256)": FunctionFragment;
        "calculateFeeTokenShares(ITwapStrategyFactory,ITwapStrategyManager,address,uint256,uint256)": FunctionFragment;
        "calculateShares(address,address,address,bool[2],uint256,uint256,uint256,uint256,uint256)": FunctionFragment;
        "getOptimalAmounts(uint256,uint256,uint256,uint256,uint256,uint256)": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "DIVISOR" | "calculateFeeShares" | "calculateFeeTokenShares" | "calculateShares" | "getOptimalAmounts"): FunctionFragment;
    encodeFunctionData(functionFragment: "DIVISOR", values?: undefined): string;
    encodeFunctionData(functionFragment: "calculateFeeShares", values: [
        PromiseOrValue<string>,
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>
    ]): string;
    encodeFunctionData(functionFragment: "calculateFeeTokenShares", values: [
        PromiseOrValue<string>,
        PromiseOrValue<string>,
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>
    ]): string;
    encodeFunctionData(functionFragment: "calculateShares", values: [
        PromiseOrValue<string>,
        PromiseOrValue<string>,
        PromiseOrValue<string>,
        [
            PromiseOrValue<boolean>,
            PromiseOrValue<boolean>
        ],
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>
    ]): string;
    encodeFunctionData(functionFragment: "getOptimalAmounts", values: [
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>
    ]): string;
    decodeFunctionResult(functionFragment: "DIVISOR", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "calculateFeeShares", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "calculateFeeTokenShares", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "calculateShares", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getOptimalAmounts", data: BytesLike): Result;
    events: {};
}
export interface DefiedgeTwapShareHelper extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: DefiedgeTwapShareHelperInterface;
    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: {
        DIVISOR(overrides?: CallOverrides): Promise<[BigNumber]>;
        calculateFeeShares(_factory: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _accManagementFee: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
            string,
            string,
            BigNumber,
            BigNumber
        ] & {
            managerFeeTo: string;
            protocolFeeTo: string;
            managerShare: BigNumber;
            protocolShare: BigNumber;
        }>;
        calculateFeeTokenShares(_factory: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _strategy: PromiseOrValue<string>, _fee0: PromiseOrValue<BigNumberish>, _fee1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
            string,
            string,
            BigNumber,
            BigNumber,
            BigNumber,
            BigNumber
        ] & {
            managerFeeTo: string;
            protocolFeeTo: string;
            managerToken0Amount: BigNumber;
            managerToken1Amount: BigNumber;
            protocolToken0Amount: BigNumber;
            protocolToken1Amount: BigNumber;
        }>;
        calculateShares(_registry: PromiseOrValue<string>, _pool: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _useTwap: [PromiseOrValue<boolean>, PromiseOrValue<boolean>], _amount0: PromiseOrValue<BigNumberish>, _amount1: PromiseOrValue<BigNumberish>, _totalAmount0: PromiseOrValue<BigNumberish>, _totalAmount1: PromiseOrValue<BigNumberish>, _totalShares: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BigNumber] & {
            share: BigNumber;
        }>;
        getOptimalAmounts(_amount0: PromiseOrValue<BigNumberish>, _amount1: PromiseOrValue<BigNumberish>, _amount0Min: PromiseOrValue<BigNumberish>, _amount1Min: PromiseOrValue<BigNumberish>, _totalAmount0: PromiseOrValue<BigNumberish>, _totalAmount1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
            BigNumber,
            BigNumber
        ] & {
            amount0: BigNumber;
            amount1: BigNumber;
        }>;
    };
    DIVISOR(overrides?: CallOverrides): Promise<BigNumber>;
    calculateFeeShares(_factory: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _accManagementFee: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
        string,
        string,
        BigNumber,
        BigNumber
    ] & {
        managerFeeTo: string;
        protocolFeeTo: string;
        managerShare: BigNumber;
        protocolShare: BigNumber;
    }>;
    calculateFeeTokenShares(_factory: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _strategy: PromiseOrValue<string>, _fee0: PromiseOrValue<BigNumberish>, _fee1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
        string,
        string,
        BigNumber,
        BigNumber,
        BigNumber,
        BigNumber
    ] & {
        managerFeeTo: string;
        protocolFeeTo: string;
        managerToken0Amount: BigNumber;
        managerToken1Amount: BigNumber;
        protocolToken0Amount: BigNumber;
        protocolToken1Amount: BigNumber;
    }>;
    calculateShares(_registry: PromiseOrValue<string>, _pool: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _useTwap: [PromiseOrValue<boolean>, PromiseOrValue<boolean>], _amount0: PromiseOrValue<BigNumberish>, _amount1: PromiseOrValue<BigNumberish>, _totalAmount0: PromiseOrValue<BigNumberish>, _totalAmount1: PromiseOrValue<BigNumberish>, _totalShares: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
    getOptimalAmounts(_amount0: PromiseOrValue<BigNumberish>, _amount1: PromiseOrValue<BigNumberish>, _amount0Min: PromiseOrValue<BigNumberish>, _amount1Min: PromiseOrValue<BigNumberish>, _totalAmount0: PromiseOrValue<BigNumberish>, _totalAmount1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
        BigNumber,
        BigNumber
    ] & {
        amount0: BigNumber;
        amount1: BigNumber;
    }>;
    callStatic: {
        DIVISOR(overrides?: CallOverrides): Promise<BigNumber>;
        calculateFeeShares(_factory: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _accManagementFee: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
            string,
            string,
            BigNumber,
            BigNumber
        ] & {
            managerFeeTo: string;
            protocolFeeTo: string;
            managerShare: BigNumber;
            protocolShare: BigNumber;
        }>;
        calculateFeeTokenShares(_factory: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _strategy: PromiseOrValue<string>, _fee0: PromiseOrValue<BigNumberish>, _fee1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
            string,
            string,
            BigNumber,
            BigNumber,
            BigNumber,
            BigNumber
        ] & {
            managerFeeTo: string;
            protocolFeeTo: string;
            managerToken0Amount: BigNumber;
            managerToken1Amount: BigNumber;
            protocolToken0Amount: BigNumber;
            protocolToken1Amount: BigNumber;
        }>;
        calculateShares(_registry: PromiseOrValue<string>, _pool: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _useTwap: [PromiseOrValue<boolean>, PromiseOrValue<boolean>], _amount0: PromiseOrValue<BigNumberish>, _amount1: PromiseOrValue<BigNumberish>, _totalAmount0: PromiseOrValue<BigNumberish>, _totalAmount1: PromiseOrValue<BigNumberish>, _totalShares: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        getOptimalAmounts(_amount0: PromiseOrValue<BigNumberish>, _amount1: PromiseOrValue<BigNumberish>, _amount0Min: PromiseOrValue<BigNumberish>, _amount1Min: PromiseOrValue<BigNumberish>, _totalAmount0: PromiseOrValue<BigNumberish>, _totalAmount1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
            BigNumber,
            BigNumber
        ] & {
            amount0: BigNumber;
            amount1: BigNumber;
        }>;
    };
    filters: {};
    estimateGas: {
        DIVISOR(overrides?: CallOverrides): Promise<BigNumber>;
        calculateFeeShares(_factory: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _accManagementFee: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        calculateFeeTokenShares(_factory: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _strategy: PromiseOrValue<string>, _fee0: PromiseOrValue<BigNumberish>, _fee1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        calculateShares(_registry: PromiseOrValue<string>, _pool: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _useTwap: [PromiseOrValue<boolean>, PromiseOrValue<boolean>], _amount0: PromiseOrValue<BigNumberish>, _amount1: PromiseOrValue<BigNumberish>, _totalAmount0: PromiseOrValue<BigNumberish>, _totalAmount1: PromiseOrValue<BigNumberish>, _totalShares: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        getOptimalAmounts(_amount0: PromiseOrValue<BigNumberish>, _amount1: PromiseOrValue<BigNumberish>, _amount0Min: PromiseOrValue<BigNumberish>, _amount1Min: PromiseOrValue<BigNumberish>, _totalAmount0: PromiseOrValue<BigNumberish>, _totalAmount1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
    };
    populateTransaction: {
        DIVISOR(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        calculateFeeShares(_factory: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _accManagementFee: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        calculateFeeTokenShares(_factory: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _strategy: PromiseOrValue<string>, _fee0: PromiseOrValue<BigNumberish>, _fee1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        calculateShares(_registry: PromiseOrValue<string>, _pool: PromiseOrValue<string>, _manager: PromiseOrValue<string>, _useTwap: [PromiseOrValue<boolean>, PromiseOrValue<boolean>], _amount0: PromiseOrValue<BigNumberish>, _amount1: PromiseOrValue<BigNumberish>, _totalAmount0: PromiseOrValue<BigNumberish>, _totalAmount1: PromiseOrValue<BigNumberish>, _totalShares: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getOptimalAmounts(_amount0: PromiseOrValue<BigNumberish>, _amount1: PromiseOrValue<BigNumberish>, _amount0Min: PromiseOrValue<BigNumberish>, _amount1Min: PromiseOrValue<BigNumberish>, _totalAmount0: PromiseOrValue<BigNumberish>, _totalAmount1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    };
}
