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 declare namespace PolynomialEarnResolver {
    type MinimalStrikeStruct = {
        strikeId: PromiseOrValue<BigNumberish>;
        expiry: PromiseOrValue<BigNumberish>;
        strikePrice: PromiseOrValue<BigNumberish>;
    };
    type MinimalStrikeStructOutput = [BigNumber, BigNumber, BigNumber] & {
        strikeId: BigNumber;
        expiry: BigNumber;
        strikePrice: BigNumber;
    };
    type FuturesDataStruct = {
        spotPrice: PromiseOrValue<BigNumberish>;
        shortPosition: PromiseOrValue<BigNumberish>;
        margin: PromiseOrValue<BigNumberish>;
        leverage: PromiseOrValue<BigNumberish>;
    };
    type FuturesDataStructOutput = [BigNumber, BigNumber, BigNumber, BigNumber] & {
        spotPrice: BigNumber;
        shortPosition: BigNumber;
        margin: BigNumber;
        leverage: BigNumber;
    };
    type OptionDataStruct = {
        strikeId: PromiseOrValue<BigNumberish>;
        strikePrice: PromiseOrValue<BigNumberish>;
        expiry: PromiseOrValue<BigNumberish>;
        positionId: PromiseOrValue<BigNumberish>;
        optionAmount: PromiseOrValue<BigNumberish>;
        premiumPaid: PromiseOrValue<BigNumberish>;
        premiumCollected: PromiseOrValue<BigNumberish>;
        collateral: PromiseOrValue<BigNumberish>;
        currentOptionDelta: PromiseOrValue<BigNumberish>;
    };
    type OptionDataStructOutput = [
        BigNumber,
        BigNumber,
        BigNumber,
        BigNumber,
        BigNumber,
        BigNumber,
        BigNumber,
        BigNumber,
        BigNumber
    ] & {
        strikeId: BigNumber;
        strikePrice: BigNumber;
        expiry: BigNumber;
        positionId: BigNumber;
        optionAmount: BigNumber;
        premiumPaid: BigNumber;
        premiumCollected: BigNumber;
        collateral: BigNumber;
        currentOptionDelta: BigNumber;
    };
}
export interface PolynomialResolverInterface extends utils.Interface {
    functions: {
        'FUTURES_MARKET()': FunctionFragment;
        'GREEKS()': FunctionFragment;
        'MARKET()': FunctionFragment;
        'RATES()': FunctionFragment;
        'addVault(address,uint8)': FunctionFragment;
        'authority()': FunctionFragment;
        'getDeltaWithSpotPrice(uint256,uint256)': FunctionFragment;
        'getDeltas(uint256[])': FunctionFragment;
        'getStrikeDetails(uint256[])': FunctionFragment;
        'getUserPositions(address,address[])': FunctionFragment;
        'getVaultPositions(address)': FunctionFragment;
        'isVault(address)': FunctionFragment;
        'owner()': FunctionFragment;
        'setAuthority(address)': FunctionFragment;
        'setOwner(address)': FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: 'FUTURES_MARKET' | 'GREEKS' | 'MARKET' | 'RATES' | 'addVault' | 'authority' | 'getDeltaWithSpotPrice' | 'getDeltas' | 'getStrikeDetails' | 'getUserPositions' | 'getVaultPositions' | 'isVault' | 'owner' | 'setAuthority' | 'setOwner'): FunctionFragment;
    encodeFunctionData(functionFragment: 'FUTURES_MARKET', values?: undefined): string;
    encodeFunctionData(functionFragment: 'GREEKS', values?: undefined): string;
    encodeFunctionData(functionFragment: 'MARKET', values?: undefined): string;
    encodeFunctionData(functionFragment: 'RATES', values?: undefined): string;
    encodeFunctionData(functionFragment: 'addVault', values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
    encodeFunctionData(functionFragment: 'authority', values?: undefined): string;
    encodeFunctionData(functionFragment: 'getDeltaWithSpotPrice', values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>]): string;
    encodeFunctionData(functionFragment: 'getDeltas', values: [PromiseOrValue<BigNumberish>[]]): string;
    encodeFunctionData(functionFragment: 'getStrikeDetails', values: [PromiseOrValue<BigNumberish>[]]): string;
    encodeFunctionData(functionFragment: 'getUserPositions', values: [PromiseOrValue<string>, PromiseOrValue<string>[]]): string;
    encodeFunctionData(functionFragment: 'getVaultPositions', values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: 'isVault', values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: 'owner', values?: undefined): string;
    encodeFunctionData(functionFragment: 'setAuthority', values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: 'setOwner', values: [PromiseOrValue<string>]): string;
    decodeFunctionResult(functionFragment: 'FUTURES_MARKET', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'GREEKS', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'MARKET', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'RATES', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'addVault', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'authority', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'getDeltaWithSpotPrice', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'getDeltas', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'getStrikeDetails', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'getUserPositions', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'getVaultPositions', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'isVault', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'setAuthority', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'setOwner', data: BytesLike): Result;
    events: {
        'AuthorityUpdated(address,address)': EventFragment;
        'OwnerUpdated(address,address)': EventFragment;
    };
    getEvent(nameOrSignatureOrTopic: 'AuthorityUpdated'): EventFragment;
    getEvent(nameOrSignatureOrTopic: 'OwnerUpdated'): EventFragment;
}
export interface AuthorityUpdatedEventObject {
    user: string;
    newAuthority: string;
}
export declare type AuthorityUpdatedEvent = TypedEvent<[string, string], AuthorityUpdatedEventObject>;
export declare type AuthorityUpdatedEventFilter = TypedEventFilter<AuthorityUpdatedEvent>;
export interface OwnerUpdatedEventObject {
    user: string;
    newOwner: string;
}
export declare type OwnerUpdatedEvent = TypedEvent<[string, string], OwnerUpdatedEventObject>;
export declare type OwnerUpdatedEventFilter = TypedEventFilter<OwnerUpdatedEvent>;
export interface PolynomialResolver extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: PolynomialResolverInterface;
    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: {
        FUTURES_MARKET(overrides?: CallOverrides): Promise<[string]>;
        GREEKS(overrides?: CallOverrides): Promise<[string]>;
        MARKET(overrides?: CallOverrides): Promise<[string]>;
        RATES(overrides?: CallOverrides): Promise<[string]>;
        addVault(vault: PromiseOrValue<string>, vaultType: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        authority(overrides?: CallOverrides): Promise<[string]>;
        getDeltaWithSpotPrice(spotPrice: PromiseOrValue<BigNumberish>, strikeId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & {
            callDelta: BigNumber;
            putDelta: BigNumber;
        }>;
        getDeltas(strikeIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<[
            BigNumber[],
            BigNumber[]
        ] & {
            callDeltas: BigNumber[];
            putDeltas: BigNumber[];
        }>;
        getStrikeDetails(strikeIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<[
            PolynomialEarnResolver.MinimalStrikeStructOutput[]
        ] & {
            strikes: PolynomialEarnResolver.MinimalStrikeStructOutput[];
        }>;
        getUserPositions(user: PromiseOrValue<string>, vaults: PromiseOrValue<string>[], overrides?: CallOverrides): Promise<[
            BigNumber[],
            BigNumber[]
        ] & {
            balances: BigNumber[];
            underlyings: BigNumber[];
        }>;
        getVaultPositions(vault: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
            PolynomialEarnResolver.FuturesDataStructOutput,
            PolynomialEarnResolver.OptionDataStructOutput[]
        ] & {
            futurePosition: PolynomialEarnResolver.FuturesDataStructOutput;
            optionData: PolynomialEarnResolver.OptionDataStructOutput[];
        }>;
        isVault(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[number]>;
        owner(overrides?: CallOverrides): Promise<[string]>;
        setAuthority(newAuthority: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        setOwner(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
    };
    FUTURES_MARKET(overrides?: CallOverrides): Promise<string>;
    GREEKS(overrides?: CallOverrides): Promise<string>;
    MARKET(overrides?: CallOverrides): Promise<string>;
    RATES(overrides?: CallOverrides): Promise<string>;
    addVault(vault: PromiseOrValue<string>, vaultType: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    authority(overrides?: CallOverrides): Promise<string>;
    getDeltaWithSpotPrice(spotPrice: PromiseOrValue<BigNumberish>, strikeId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & {
        callDelta: BigNumber;
        putDelta: BigNumber;
    }>;
    getDeltas(strikeIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<[
        BigNumber[],
        BigNumber[]
    ] & {
        callDeltas: BigNumber[];
        putDeltas: BigNumber[];
    }>;
    getStrikeDetails(strikeIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<PolynomialEarnResolver.MinimalStrikeStructOutput[]>;
    getUserPositions(user: PromiseOrValue<string>, vaults: PromiseOrValue<string>[], overrides?: CallOverrides): Promise<[
        BigNumber[],
        BigNumber[]
    ] & {
        balances: BigNumber[];
        underlyings: BigNumber[];
    }>;
    getVaultPositions(vault: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
        PolynomialEarnResolver.FuturesDataStructOutput,
        PolynomialEarnResolver.OptionDataStructOutput[]
    ] & {
        futurePosition: PolynomialEarnResolver.FuturesDataStructOutput;
        optionData: PolynomialEarnResolver.OptionDataStructOutput[];
    }>;
    isVault(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<number>;
    owner(overrides?: CallOverrides): Promise<string>;
    setAuthority(newAuthority: PromiseOrValue<string>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    setOwner(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    callStatic: {
        FUTURES_MARKET(overrides?: CallOverrides): Promise<string>;
        GREEKS(overrides?: CallOverrides): Promise<string>;
        MARKET(overrides?: CallOverrides): Promise<string>;
        RATES(overrides?: CallOverrides): Promise<string>;
        addVault(vault: PromiseOrValue<string>, vaultType: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
        authority(overrides?: CallOverrides): Promise<string>;
        getDeltaWithSpotPrice(spotPrice: PromiseOrValue<BigNumberish>, strikeId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & {
            callDelta: BigNumber;
            putDelta: BigNumber;
        }>;
        getDeltas(strikeIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<[
            BigNumber[],
            BigNumber[]
        ] & {
            callDeltas: BigNumber[];
            putDeltas: BigNumber[];
        }>;
        getStrikeDetails(strikeIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<PolynomialEarnResolver.MinimalStrikeStructOutput[]>;
        getUserPositions(user: PromiseOrValue<string>, vaults: PromiseOrValue<string>[], overrides?: CallOverrides): Promise<[
            BigNumber[],
            BigNumber[]
        ] & {
            balances: BigNumber[];
            underlyings: BigNumber[];
        }>;
        getVaultPositions(vault: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
            PolynomialEarnResolver.FuturesDataStructOutput,
            PolynomialEarnResolver.OptionDataStructOutput[]
        ] & {
            futurePosition: PolynomialEarnResolver.FuturesDataStructOutput;
            optionData: PolynomialEarnResolver.OptionDataStructOutput[];
        }>;
        isVault(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<number>;
        owner(overrides?: CallOverrides): Promise<string>;
        setAuthority(newAuthority: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
        setOwner(newOwner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
    };
    filters: {
        'AuthorityUpdated(address,address)'(user?: PromiseOrValue<string> | null, newAuthority?: PromiseOrValue<string> | null): AuthorityUpdatedEventFilter;
        AuthorityUpdated(user?: PromiseOrValue<string> | null, newAuthority?: PromiseOrValue<string> | null): AuthorityUpdatedEventFilter;
        'OwnerUpdated(address,address)'(user?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnerUpdatedEventFilter;
        OwnerUpdated(user?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnerUpdatedEventFilter;
    };
    estimateGas: {
        FUTURES_MARKET(overrides?: CallOverrides): Promise<BigNumber>;
        GREEKS(overrides?: CallOverrides): Promise<BigNumber>;
        MARKET(overrides?: CallOverrides): Promise<BigNumber>;
        RATES(overrides?: CallOverrides): Promise<BigNumber>;
        addVault(vault: PromiseOrValue<string>, vaultType: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        authority(overrides?: CallOverrides): Promise<BigNumber>;
        getDeltaWithSpotPrice(spotPrice: PromiseOrValue<BigNumberish>, strikeId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        getDeltas(strikeIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<BigNumber>;
        getStrikeDetails(strikeIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<BigNumber>;
        getUserPositions(user: PromiseOrValue<string>, vaults: PromiseOrValue<string>[], overrides?: CallOverrides): Promise<BigNumber>;
        getVaultPositions(vault: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        isVault(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        owner(overrides?: CallOverrides): Promise<BigNumber>;
        setAuthority(newAuthority: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        setOwner(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
    };
    populateTransaction: {
        FUTURES_MARKET(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        GREEKS(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        MARKET(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        RATES(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        addVault(vault: PromiseOrValue<string>, vaultType: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        authority(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getDeltaWithSpotPrice(spotPrice: PromiseOrValue<BigNumberish>, strikeId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getDeltas(strikeIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getStrikeDetails(strikeIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getUserPositions(user: PromiseOrValue<string>, vaults: PromiseOrValue<string>[], overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getVaultPositions(vault: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        isVault(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        setAuthority(newAuthority: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        setOwner(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
    };
}
