import { CurrencyExt } from "../../types"; import { MonetaryAmount } from "@interlay/monetary-js"; import { Trade } from "./trade/trade"; import { MultiPath, TradingPair } from "./trade/types"; /** * Recursive function to find best trade path for provided trading pairs, * input amount, output currencies and limited amount of hops between * pools. * * @param {MonetaryAmount} inputAmount Input currency amount to be exchanged. * @param {CurrencyExt} outputCurrency Output currency to be received. * @param {Array} pairs Array of all trading pairs to include in search. * @param {number} hopLimit Maximum number of hops between liquidity pools. * @param {MultiPath} path Recursively generated parameter containing current trading path. * @param {MonetaryAmount} initialInputAmount Initial input amount. * @returns */ declare const findBestTradeRecursively: (inputAmount: MonetaryAmount, outputCurrency: CurrencyExt, pairs: Array, hopLimit: number, path?: MultiPath, initialInputAmount?: MonetaryAmount) => Trade | null; export { findBestTradeRecursively };