import { FixedPoint } from "./fixedPoint"; import { Market } from "../interfaces"; import { InstrumentAmount } from "./instrumentAmount"; import { MarketFee } from "./marketFee"; export declare class MarketPrice { readonly market: Market; readonly raw: FixedPoint; private constructor(); static fromRaw(market: Market, rawPrice: FixedPoint): MarketPrice; static fromDecimal(market: Market, price: string): MarketPrice; static ratio(base: InstrumentAmount, quote: InstrumentAmount): MarketPrice; static fromDB(market: Market, price: string): MarketPrice; static fromC3JSON(price: string): MarketPrice; copy(): MarketPrice; toDecimal(): string; toDB(): FixedPoint; toC3JSON(): string; toString(): string; asFraction(): { numerator: bigint; denominator: bigint; decimals: number; }; isMultipleOf(price: MarketPrice): boolean; isZero(): boolean; isInfinite(): boolean; multiplyBy(x: bigint): MarketPrice; multiplyByFee(x: MarketFee): MarketPrice; quoteToBase(quote: InstrumentAmount): InstrumentAmount; baseToQuote(base: InstrumentAmount): InstrumentAmount; nextMultiple(price: MarketPrice): MarketPrice; prevMultiple(price: MarketPrice): MarketPrice; compare(price: MarketPrice): number; equals(price: MarketPrice): boolean; greaterThanOrEqual(price: MarketPrice): boolean; greaterThan(price: MarketPrice): boolean; lessThanOrEqual(price: MarketPrice): boolean; lessThan(price: MarketPrice): boolean; add(price: MarketPrice): MarketPrice; sub(price: MarketPrice): MarketPrice; baseToQuoteIsInteger(base: InstrumentAmount): boolean; abs(): MarketPrice; div(rhs: MarketPrice): MarketPrice; mean(rhs: MarketPrice): MarketPrice; max(rhs: MarketPrice): MarketPrice; min(rhs: MarketPrice): MarketPrice; clamp(lowerBound: MarketPrice, upperBound: MarketPrice): MarketPrice; isPositive(): boolean; minPrice(): MarketPrice; roundToMinQuote(): MarketPrice; round(roundingPrice: MarketPrice): MarketPrice; } //# sourceMappingURL=marketPrices.d.ts.map