import { App } from '../generated'; import { RouteAndQuote, TokenTypeFullname, TradeRoute, TradeStep, TradingPool, TradingPoolProvider, IUiQuotesResult, SplitSingleRouteAndQuote, DetailedRouteAndQuote, SplitPlanner, SplitPlannerV2_1_2, SplitMultiRouteAndQuote, RestApi, IUiQuotesV3Result } from './types'; import { CoinListClient, RawCoinInfo } from '@manahippo/coin-list'; import { AptosClient } from 'aptos'; import PromiseThrottle from 'promise-throttle'; export declare class TradeAggregator { client: AptosClient; printError: boolean; poolConfig: import("./types").PoolConfig; poolConfigUrl: string; allPools: TradingPool[]; xToAnyPools: Map; coinListClient: CoinListClient; poolProviders: TradingPoolProvider[]; app: App; cachedRoutes: [string, TradeRoute[]][]; promiseThrottle: PromiseThrottle; api: RestApi; coinPrice: Map; splitPlanner: SplitPlanner; splitPlannerV2_1_2: SplitPlannerV2_1_2; constructor(client: AptosClient, netConfig?: import("../config").NetworkConfiguration, coinListClient?: CoinListClient, poolReloadRequestsRateOfSecond?: number, poolProviders?: TradingPoolProvider[], printError?: boolean, buildDefaultPoolList?: boolean, poolConfig?: import("./types").PoolConfig, poolConfigUrl?: string); static create(client: AptosClient, netConfig?: import("../config").NetworkConfiguration, coinListClient?: CoinListClient, poolReloadRequestsRateOfSecond?: number, poolProviders?: TradingPoolProvider[], printError?: boolean, poolConfig?: import("./types").PoolConfig, poolConfigUrl?: string): Promise; buildPoolList(): void; private buildCache; updatePoolLists(): Promise; buildDefaultPoolList(): void; getTradableCoinInfo(): RawCoinInfo[]; getXtoYDirectSteps(x: RawCoinInfo, y: RawCoinInfo, fixedOut: boolean, requireRoutable?: boolean): TradeStep[]; getOneStepRoutes(x: RawCoinInfo, y: RawCoinInfo, fixedOut: boolean): TradeRoute[]; getTwoStepRoutes(x: RawCoinInfo, y: RawCoinInfo, fixedOut: boolean): TradeRoute[]; getThreeStepRoutes(x: RawCoinInfo, y: RawCoinInfo, fixedOut: boolean): TradeRoute[]; getAllRoutes(x: RawCoinInfo, y: RawCoinInfo, fixedOut: boolean, maxSteps?: 1 | 2 | 3, allowRoundTrip?: boolean): TradeRoute[]; reloadPools(x: RawCoinInfo, y: RawCoinInfo, fixedOut: boolean, maxSteps?: 1 | 2 | 3, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, allowHighGas?: boolean, considerGasWhenSorting?: boolean): Promise; loadAptPrice(): Promise; getAptUnitPrice(): number | undefined; getOutCoinPriceFromCache(outputSymbol: string): number | undefined; getOutCoinPrice(quotes: DetailedRouteAndQuote[]): number | undefined; private checkOutCoinPrice; getQuotes(inputUiAmt: number, x: RawCoinInfo, y: RawCoinInfo, maxSteps?: 1 | 2 | 3, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise; getBestQuote(inputUiAmt: number, x: RawCoinInfo, y: RawCoinInfo, maxSteps?: 1 | 2 | 3, reloadState?: boolean, allowRoundTrip?: boolean, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise; getQuotesV2(inputUiAmt: number, x: RawCoinInfo, y: RawCoinInfo, maxSteps?: 1 | 2 | 3, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise; getBestQuoteV2(inputUiAmt: number, x: RawCoinInfo, y: RawCoinInfo, maxSteps?: 1 | 2 | 3, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, allowHighGas?: boolean): Promise; getQuotesV1V2(inputUiAmt: number, x: RawCoinInfo, y: RawCoinInfo, maxSteps?: 1 | 2 | 3, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise<[DetailedRouteAndQuote[], SplitSingleRouteAndQuote[]]>; getQuotesV3(inputUiAmt: number, x: RawCoinInfo, y: RawCoinInfo, maxSteps?: 1 | 2 | 3, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise; getBestQuoteV3(inputUiAmt: number, x: RawCoinInfo, y: RawCoinInfo, maxSteps?: 1 | 2 | 3, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise; getQuotesV1V2V3(inputUiAmt: number, x: RawCoinInfo, y: RawCoinInfo, maxSteps?: 1 | 2 | 3, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise<[DetailedRouteAndQuote[], SplitSingleRouteAndQuote[], SplitMultiRouteAndQuote[]]>; getQuotesUpToV3(inputUiAmt: number, x: RawCoinInfo, y: RawCoinInfo, maxSteps?: 1 | 2 | 3, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise<(DetailedRouteAndQuote | SplitSingleRouteAndQuote | SplitMultiRouteAndQuote)[]>; getQuotesWithFixedOutput(outputUiAmt: number, inputCoin: RawCoinInfo, outputCoin: RawCoinInfo, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise; getBestQuoteWithFixedOutput(outputUiAmt: number, inputCoin: RawCoinInfo, outputCoin: RawCoinInfo, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise; getQuotesWithFixedOutputWithChange(outputUiAmt: number, inputCoin: RawCoinInfo, outputCoin: RawCoinInfo, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise; binarySearchForFixedOutput(route: TradeRoute, outputUiAmt: number, inputAttempt: number, lowerBound: number, upperBound: number): RouteAndQuote | null; getQuotesUni(inputUiAmt: number, x: RawCoinInfo, y: RawCoinInfo, maxSteps?: 1 | 2 | 3, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, isViaAPI?: boolean, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise; getQuotesV3Uni(inputUiAmt: number, x: RawCoinInfo, y: RawCoinInfo, maxSteps?: 1 | 2 | 3, reloadState?: boolean, allowRoundTrip?: boolean, customReloadMinInterval?: number | undefined, isViaAPI?: boolean, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise; requestQuotesViaAPI(inputUiAmt: number, fromToken: RawCoinInfo, toToken: RawCoinInfo, reloadState?: boolean, maxSteps?: 1 | 2 | 3, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise; requestQuotesV3ViaAPI(inputUiAmt: number, fromToken: RawCoinInfo, toToken: RawCoinInfo, reloadState?: boolean, maxSteps?: 1 | 2 | 3, allowHighGas?: boolean, considerGasWhenSorting?: boolean, gasUnitsPrice?: number): Promise; } //# sourceMappingURL=TradeAggregator.d.ts.map