import BN from 'bn.js'; import { TickData } from '../types/clmmpool'; import { AptosResourceType } from '../types/aptos'; import { SDK } from '../sdk'; import { IModule } from '../interfaces/IModule'; import { BigNumber } from '../types'; import { Pool } from './resourcesModule'; export type createTestTransferTxPayloadParams = { account: string; value: number; }; export type CalculateRatesParams = { decimalsA: number; decimalsB: number; a2b: boolean; byAmountIn: boolean; amount: BN; swapTicks: Array; currentPool: Pool; }; export type CalculateRatesResult = { estimatedAmountIn: BN; estimatedAmountOut: BN; estimatedEndSqrtPrice: BN; estimatedFeeAmount: BN; isExceed: boolean; extraComputeLimit: number; aToB: boolean; byAmountIn: boolean; amount: BN; priceImpactPct: number; }; export type CalculatePriceImpactParams = { fromToken: AptosResourceType; toToken: AptosResourceType; fromAmount: BigNumber; toAmount: BigNumber; interactiveToken: 'from' | 'to'; }; export type CreateTXPayloadParams = { pool_addr: string; coinTypeA: AptosResourceType; coinTypeB: AptosResourceType; a_to_b: boolean; by_amount_in: boolean; amount: string; amount_limit: string; partner: string; }; export type PreSwapParams = { pool: any; decimalsA: number; decimalsB: number; a2b: boolean; by_amount_in: boolean; amount: string; }; export declare class SwapModule implements IModule { protected _sdk: SDK; constructor(sdk: SDK); get sdk(): SDK; calculateRates(params: CalculateRatesParams): CalculateRatesResult; } //# sourceMappingURL=swapModule.d.ts.map