import { type IPrice, type IPriceData, PriceMulReturnType, PriceMulParamType } from '../interfaces/IPrice'; import { BigNumber } from 'bignumber.js'; import { Denomination } from '../aliases/Denomination'; /** * @class Price * @see IPrice */ export declare class Price implements IPrice { readonly value: string; readonly base: Denomination; readonly quote: Denomination; /** Extracted symbol from the base */ private readonly _baseSymbol; /** Extracted symbol from the quote */ private readonly _quoteSymbol; /** FACTORY */ static createFrom(params: IPriceData): IPrice; /** CONSTRUCTOR */ /** Sealed constructor */ private constructor(); /** @see IPrice.hasSameQuote */ hasSameQuote(otherPrice: IPrice): boolean; /** @see IPrice.hasSameBase */ hasSameBase(otherPrice: IPrice): boolean; /** @see IPrice.hasSameDenominations */ hasSameDenominations(otherPrice: IPrice): boolean; /** @see IPrice.add */ add(otherPrice: IPrice): IPrice; /** @see IPrice.subtract */ subtract(otherPrice: IPrice): IPrice; /** @see IPrice.multiply */ multiply>(multiplier: InputParams): ReturnType; /** @see IPrice.divide */ divide(divider: string | number | IPrice): IPrice; /** @see IPrice.invert */ invert(): IPrice; /** @see IPrice.toBN */ toBN(): BigNumber; /** @see IPrice.toString */ toString(): string; /** PRIVATE */ /** * @name _validateSameBaseToken * @param price Price to validate against the instance * @throws If the price base tokens do not match */ private _validateSameBaseToken; /** * @name _validateSameQuoteToken * @param price Price to validate against the instance * @throws If the price quote tokens do not match */ private _validateSameQuoteToken; /** * @name _validateSameDenominations * @param price Price to validate against the instance * @throws If the price base or quote tokens do not match */ private _validateSameDenominations; } //# sourceMappingURL=Price.d.ts.map