import { NumberRange, NumberTolerance } from '../core/types'; /** * Utility functions for number comparisons and range calculations */ export declare class NumberUtils { /** * Parse a number range specification * * Format: min:max * Example: "0:100" → {min: 0, max: 100} */ static parseNumberRange(minStr: string, maxStr: string): NumberRange; /** * Parse a number tolerance specification * * Formats: * - ±5 → {value: 0, tolerance: 5, isPercentage: false} * - ±10% → {value: 0, tolerance: 10, isPercentage: true} */ static parseNumberTolerance(valueStr: string, toleranceStr: string): NumberTolerance; /** * Check if a number is within a range */ static isNumberInRange(actual: number, range: NumberRange): { inRange: boolean; distance: number; }; /** * Check if a number is within tolerance of a value */ static isNumberWithinTolerance(actual: number, spec: NumberTolerance): { within: boolean; difference: number; allowedDifference: number; }; /** * Format a range for error messages */ static formatRange(range: NumberRange): string; /** * Format a tolerance for error messages */ static formatTolerance(spec: NumberTolerance): string; } //# sourceMappingURL=NumberUtils.d.ts.map