import { VMType } from './constants'; import { Currency } from './currency'; import { CurrencyAmount, Percent, Price } from './fractions'; import { Token } from './token'; export declare function validateVMTypeInstance(value: bigint, vmType: VMType): void; export declare function sqrt(y: bigint): bigint; export declare function sortedInsert(items: T[], add: T, maxSize: number, comparator: (a: T, b: T) => number): T | null; /** * Returns the percent difference between the mid price and the execution price, i.e. price impact. * @param midPrice mid price before the trade * @param inputAmount the input amount of the trade * @param outputAmount the output amount of the trade */ export declare function computePriceImpact(midPrice: Price, inputAmount: CurrencyAmount, outputAmount: CurrencyAmount): Percent; export declare function getTokenComparator(balances: { [tokenAddress: string]: CurrencyAmount | undefined; }): (tokenA: Token, tokenB: Token) => number; //# sourceMappingURL=utils.d.ts.map