import { Fraction } from './Fraction'; import { Coin } from './Coin'; import { BigintIsh, Rounding } from '../constants'; export declare class Price extends Fraction { readonly baseCoin: CBase; readonly quoteCoin: CQuote; readonly scalar: Fraction; /** * Construct a price, either with the base and quote currency amount, or the * @param args */ constructor(...args: [CBase, CQuote, BigintIsh, BigintIsh]); /** * Flip the price, switching the base and quote currency */ invert(): Price; /** * Multiply the price by another price, returning a new price. The other price must have the same base currency as this price's quote currency * @param other the other price */ multiply(other: Price): Price; /** * Return the amount of quote currency corresponding to a given amount of the base currency * @param coinAmount the amount of base currency to quote against the price */ quote(coinAmount: BigintIsh): Fraction; /** * Get the value scaled by decimals for formatting * @private */ private get adjustedForDecimals(); toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string; }