import type { BigintIsh } from '@crypto-dex-sdk/math'; import type { MultiPath } from '../MultiRoute'; import { Amount, Price, Token } from '@crypto-dex-sdk/currency'; import { JSBI } from '@crypto-dex-sdk/math'; import { Fee } from '../Fee'; export declare class Pair { readonly liquidityToken: Token; readonly swapGasCost: JSBI; readonly minLiquidity: JSBI; readonly fee = Fee.DEFAULT; private readonly tokenAmounts; private readonly pairAddress; static getAddress(tokenA: Token, tokenB: Token): string; constructor(AmountA: Amount, AmountB: Amount, PairAddress?: string); /** * Returns true if the token is either token0 or token1 * @param token to check */ involvesToken(token: Token): boolean; /** * Returns the current mid price of the pair in terms of token0, i.e. the ratio of reserve1 to reserve0 */ get token0Price(): Price; /** * Returns the current mid price of the pair in terms of token1, i.e. the ratio of reserve0 to reserve1 */ get token1Price(): Price; /** * Return the price of the given token in terms of the other token in the pair. * @param token token to return price of */ priceOf(token: Token): Price; /** * Returns the chain ID of the tokens in the pair. */ get chainId(): number; get token0(): Token; get token1(): Token; get reserve0(): Amount; get reserve1(): Amount; reserveOf(token: Token): Amount; pathOf(token: Token): MultiPath; getOutputAmount(inputAmount: Amount): [Amount, Pair]; getInputAmount(outputAmount: Amount): [Amount, Pair]; getLiquidityMinted(totalSupply: Amount, tokenAmountA: Amount, tokenAmountB: Amount): Amount; getLiquidityValue(token: Token, totalSupply: Amount, liquidity: Amount, feeOn?: boolean, kLast?: BigintIsh): Amount; } //# sourceMappingURL=Pair.d.ts.map