/** Display formatter: truncates to `decimals` and adds thousands separators (returns a * localized string, e.g. "1,234.56"). Use for UI text, not for amount math. */ export declare function truncateDecimals(value: number, decimals?: number): string; /** Ceil to `decimals` (number in, number out). Values already representable at * `decimals` pass through unchanged — a raw `Math.ceil(value * factor)` would * bump them a full step up on float dust (0.1 * 1e6 === 100000.00000000001). */ export declare function ceilToDecimals(value: number, decimals: number): number; /** * Amount floor: truncates a decimal string to `decimals` with no separators (returns a * plain string). String-based for the common case to avoid float precision loss, with a * numeric fallback for scientific notation. Use for on-chain/transfer amounts. */ export declare function truncateToDecimals(value: string, decimals: number): string; /** Numeric round to `decimals` (number in, number out). Non-finite inputs (e.g. Infinity * from a divide-by-zero price) return 0 — isNaN() misses Infinity. */ export declare function roundToDecimals(value: number, decimals: number | undefined): number; export declare function isScientific(x: any): boolean; //# sourceMappingURL=RoundDecimals.d.ts.map