import Decimal from "decimal.js"; import { OrderSide } from "../program/types"; export interface OrderbookDecimals { orderbookId: string; baseDecimals: number; quoteDecimals: number; priceDecimals: number; tickSize?: bigint; } export interface ScaledAmounts { amountIn: bigint; amountOut: bigint; makerAmount: bigint; takerAmount: bigint; } export declare class ScalingError extends Error { constructor(message: string); static nonPositivePrice(value: string): ScalingError; static nonPositiveSize(value: string): ScalingError; static overflow(context: string): ScalingError; static zeroAmount(): ScalingError; static fractionalAmount(value: string): ScalingError; static invalidDecimal(input: string, reason: string): ScalingError; } export declare function alignPriceToTick(price: Decimal, decimals: OrderbookDecimals): Decimal; export declare function scalePriceSize(priceInput: string | Decimal, sizeInput: string | Decimal, side: OrderSide, decimals: OrderbookDecimals): ScaledAmounts; export interface LegacyScaledAmounts { makerAmount: bigint; takerAmount: bigint; } export declare function scalePriceSizeLegacy(price: string, size: string, side: OrderSide, decimals: OrderbookDecimals): LegacyScaledAmounts; //# sourceMappingURL=scaling.d.ts.map