import * as $ from '@manahippo/move-to-ts'; import { AptosDataCache, AptosParserRepo, AptosLocalCache } from '@manahippo/move-to-ts'; import { U64, U128 } from '@manahippo/move-to-ts'; import { TypeParamDeclType, FieldDeclType } from '@manahippo/move-to-ts'; import { StructTag, TypeTag } from '@manahippo/move-to-ts'; import { HexString, AptosClient } from 'aptos'; import * as Stdlib from '../stdlib'; export declare const packageName = "Cetue-AMM"; export declare const moduleAddress: HexString; export declare const moduleName = "amm_swap"; export declare const EPOOL_DOSE_NOT_EXIST: U64; export declare class Pool { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; coin_a: Stdlib.Coin.Coin; coin_b: Stdlib.Coin.Coin; mint_capability: Stdlib.Coin.MintCapability; burn_capability: Stdlib.Coin.BurnCapability; locked_liquidity: Stdlib.Coin.Coin; protocol_fee_to: HexString; constructor(proto: any, typeTag: TypeTag); static PoolParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Pool; static load(repo: AptosParserRepo, client: AptosClient, address: HexString, typeParams: TypeTag[]): Promise; static loadByApp(app: $.AppType, address: HexString, typeParams: TypeTag[]): Promise; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare class PoolLiquidityCoin { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; constructor(proto: any, typeTag: TypeTag); static PoolLiquidityCoinParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): PoolLiquidityCoin; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare function get_pool_direction_($c: AptosDataCache, $p: TypeTag[]): boolean; export declare function get_reserves_($c: AptosDataCache, $p: TypeTag[]): [U128, U128]; export declare function swap_and_emit_event_(_account: HexString, coin_a_in: Stdlib.Coin.Coin, _coin_b_out: U128, coin_b_in: Stdlib.Coin.Coin, _coin_a_out: U128, $c: AptosDataCache, $p: TypeTag[]): [Stdlib.Coin.Coin, Stdlib.Coin.Coin, Stdlib.Coin.Coin, Stdlib.Coin.Coin]; 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; get Pool(): typeof Pool; loadPool(owner: HexString, $p: TypeTag[], loadFull?: boolean, fillCache?: boolean): Promise; get PoolLiquidityCoin(): typeof PoolLiquidityCoin; } //# sourceMappingURL=amm_swap.d.ts.map