import BN from 'bn.js'; import { AptosCoinInfoResource, AptosCoinStoreResource, AptosResource, AptosResourceType } from '../types/aptos'; import { SDK } from '../sdk'; import { IModule } from '../interfaces/IModule'; export type PoolImmutables = { coinTypeA: AptosResourceType; coinTypeB: AptosResourceType; poolType: string; poolAddress: string; tickSpacing: string; }; export type PoolState = { coinAmountA: number; coinAmountB: number; current_sqrt_price: number; current_tick_index: number; fee_growth_global_a: number; fee_growth_global_b: number; fee_protocol_coin_a: number; fee_protocol_coin_b: number; fee_rate: number; liquidity: number; index: number; positionIndex: number; tick_indexes_handle: string; ticks_handle: string; positions_handle: string; collectionName: string; uri: string; is_pause: boolean; rewarder_infos: Array; rewarder_last_updated_time: BN; }; export type Pool = PoolImmutables & PoolState; export type Rewarder = { coin_type: CoinType; authority: string; pending_authority: string; emissions_per_second: number; growth_global: number; }; export type CoinType = { account_address: string; module_name: string; struct_name: string; }; export type CoinStore = { coinAddress: AptosResourceType; } & AptosCoinStoreResource; export type CoinInfo = { coinAddress: AptosResourceType; } & AptosCoinInfoResource; export type GlobalConfig = { protocol_fee_rate: string; is_pause: boolean; }; export declare const cacheTime5min: number; export declare const cacheTime24h: number; export declare class ResourcesModule implements IModule { protected _sdk: SDK; private readonly _cache; constructor(sdk: SDK); get sdk(): SDK; getPoolState(poolAddress: string, poolType: string, isGlobalPause: boolean, forceRefresh?: boolean): Promise; getGlobalConfig(swapAddress: string, forceRefresh?: boolean): Promise; fetchAccountResource(accountAddress: string, resourceType: AptosResourceType): Promise | null>; fetchAccountResources(accountAddress: string): Promise[] | null>; private updateCache; private getCacheData; } //# sourceMappingURL=resourcesModule.d.ts.map