import { MonetaryAmount } from "@interlay/monetary-js"; import Big from "big.js"; import { CurrencyExt } from "../../../types"; import { MultiPath } from "./types"; declare class Trade { path: MultiPath; inputAmount: MonetaryAmount; outputAmount: MonetaryAmount; executionPrice: MonetaryAmount; priceImpact: Big; constructor(path: MultiPath, // Is empty array if no path was found. inputAmount: MonetaryAmount, outputAmount: MonetaryAmount); /** * Comparator for 2 trades with same input and output. * * @param anotherTrade Trade to compare. * @returns true if `this` trade is better, false if `anotherTrade` is better. * @throws When provided trade has different input or output currency. */ isBetter(anotherTrade: Trade | null): boolean; /** * Get minimum output amount for trade with provided maximum allowed slippage. * * @param {number} maxSlippage Maximum slippage in percentage. * @returns {MonetaryAmount} Minimum output amount of trade allowed with provided slippage. */ getMinimumOutputAmount(maxSlippage: number): MonetaryAmount; } export { Trade };