import BigNumber from "bignumber.js"; import { ParsedReserve } from "../parsers/reserve"; export * from "./events"; export * from "./interpolate"; export * from "./obligation"; export * from "./priceGuard"; export * from "./simulate"; export declare const toHexString: (bytes: number[]) => string; export declare const reserveSort: (reserves: ParsedReserve[], aCoinType: string, bCoinType: string) => number; /** * Bisection method to find the optimal value that satisfies a condition * @param left - Left boundary of the search range * @param right - Right boundary of the search range * @param condition - Function that takes a value and returns true if the condition is satisfied * @param maxIterations - Maximum number of iterations (default: 50) * @param tolerance - Convergence tolerance (default: 0.000001) * @returns The optimal value that satisfies the condition */ export declare const bisectionMethod: (left: BigNumber, right: BigNumber, condition: (value: BigNumber) => boolean, maxIterations?: number, tolerance?: BigNumber) => BigNumber;