import { AptosDataCache, AptosParserRepo, AptosLocalCache } from '@manahippo/move-to-ts'; import { U64 } 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 = "weighted_math"; export declare const ERR_WEIGHTED_MATH_INVALID_INPUTS: U64; export declare const ERR_WEIGHTED_MATH_NO_TOKEN_SUPPLY: U64; export declare const ERR_WEIGHTED_MATH_VALUES_TOO_LARGE: U64; export declare const ERR_WEIGHTED_SWAP_INVARIANT_DECREASE: U64; export declare const MAX_U64: U64; export declare const ONE_HUNDRED: U64; export declare function calc_in_given_out_(idx_in: U64, idx_out: U64, aO: U64, balances: U64[], weights: Fixed_point64.Fixed_point64.FixedPoint64[], $c: AptosDataCache): U64; export declare function calc_in_given_out_internal_(bI: U64, bO: U64, aO: U64, weight_ratio: Fixed_point64.Fixed_point64.FixedPoint64, $c: AptosDataCache): U64; export declare function calc_in_given_out_weights_u64_(idx_in: U64, idx_out: U64, aO: U64, balances: U64[], weights: U64[], $c: AptosDataCache): U64; export declare function calc_out_given_in_(idx_in: U64, idx_out: U64, aI: U64, balances: U64[], weights: Fixed_point64.Fixed_point64.FixedPoint64[], $c: AptosDataCache): U64; export declare function calc_out_given_in_internal_(bI: U64, bO: U64, aI: U64, weight_ratio: Fixed_point64.Fixed_point64.FixedPoint64, $c: AptosDataCache): U64; export declare function calc_out_given_in_weights_u64_(idx_in: U64, idx_out: U64, aI: U64, balances: U64[], weights: U64[], $c: AptosDataCache): U64; export declare function compute_asset_amount_to_return_(balance: U64, p_redeemed: U64, p_supply: U64, $c: AptosDataCache): U64; export declare function compute_invariant_(balances: U64[], weights: Fixed_point64.Fixed_point64.FixedPoint64[], $c: AptosDataCache): Fixed_point64.Fixed_point64.FixedPoint64; export declare function compute_invariant_weights_u64_(balances: U64[], weights: U64[], $c: AptosDataCache): U64; export declare function compute_pool_tokens_issued_(deposits: U64[], balances: U64[], p_supply: U64, $c: AptosDataCache): [U64, U64[]]; 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=weighted_math.d.ts.map