import { AptosDataCache, AptosParserRepo, AptosLocalCache } from '@manahippo/move-to-ts'; import { U64, U256 } from '@manahippo/move-to-ts'; import { HexString, AptosClient } from 'aptos'; import * as Fixed_point64 from '../fixed_point64'; export declare const packageName = "ThalaSwapMath"; export declare const moduleAddress: HexString; export declare const moduleName = "stable_math"; export declare const CONVERGE_THRESHOLD: U256; export declare const ERR_DIVIDE_BY_ZERO: U64; export declare const ERR_STABLE_MATH_D_NOT_CONVERGE: U64; export declare const ERR_STABLE_MATH_INVALID_INDICES: U64; export declare const ERR_STABLE_MATH_INVALID_NUM_COINS: U64; export declare const ERR_STABLE_MATH_INVARIANT_DECREASE: U64; export declare const ERR_STABLE_MATH_OVERFLOW: U64; export declare const ERR_STABLE_MATH_Y_NOT_CONVERGE: U64; export declare const ERR_STABLE_MATH_Y_NOT_DECREASING: U64; export declare const ERR_STABLE_MATH_Y_NOT_INCREASING: U64; export declare const INVARIANT_DECREASE_TOLERANCE: U256; export declare const MAX_LOOP_LIMIT: U64; export declare const MAX_U64: U64; export declare function abs_diff_(x: U256, y: U256, $c: AptosDataCache): U256; export declare function abs_diff_fp_(x: Fixed_point64.Fixed_point64.FixedPoint64, y: Fixed_point64.Fixed_point64.FixedPoint64, $c: AptosDataCache): Fixed_point64.Fixed_point64.FixedPoint64; export declare function calc_in_given_out_(a: U64, i: U64, j: U64, aO: U64, xp: U64[], $c: AptosDataCache): U64; export declare function calc_out_given_in_(a: U64, i: U64, j: U64, aI: U64, xp: U64[], $c: AptosDataCache): U64; export declare function compute_invariant_(xp: U64[], a: U64, $c: AptosDataCache): U256; export declare function get_Y_(xp: U64[], x: U64, a: U64, i: U64, j: U64, $c: AptosDataCache): U64; export declare function get_Y_with_prev_invariant_(xp: U64[], x: U64, a: U64, i: U64, j: U64, $c: AptosDataCache): [U64, U256]; export declare function mul_div_(x: U64, y: U64, z: U64, $c: AptosDataCache): U64; export declare function sort_2_(a: U256, b: U256, $c: AptosDataCache): [U256, U256]; export declare function sort_3_(a: U256, b: U256, c: U256, $c: AptosDataCache): [U256, U256, U256]; export declare function sort_4_(a: U256, b: U256, c: U256, d: U256, $c: AptosDataCache): [U256, U256, U256, U256]; export declare function loadParsers(repo: AptosParserRepo): void; export declare class App { client: AptosClient; repo: AptosParserRepo; cache: AptosLocalCache; constructor(client: AptosClient, repo: AptosParserRepo, cache: AptosLocalCache); get moduleAddress(): HexString; get moduleName(): string; } //# sourceMappingURL=stable_math.d.ts.map