/** * Parses an integer. Throws an error if the string given is not an integer (it * contains decimals, text, or illegal symbols). * @param value The string with the integer. */ export declare function parseIntThrow(value: string): number; /** * Parses an integer. Returns null if the string given is not an integer (it * contains decimals, text, or illegal symbols). * @param value The string with the integer. */ export declare function parseIntNull(value: string): number | null; /** * Parses an integer. Throws an error if the string given is not an integer (it * contains decimals, text, or illegal symbols). * @param value The string with the integer. */ export declare function parseFloatThrow(value: string): number; /** * Parses an integer. Returns null if the string given is not an integer (it * contains decimals, text, or illegal symbols). * @param value The string with the integer. */ export declare function parseFloatNull(value: string): number | null; /** Represents a range of values, with a minimum and maximum. */ export declare class NumberRange { /** The minimum value. */ readonly min: number; /** The maximum value. */ readonly max: number; /** Creates a {@link NumberRange}. */ constructor( /** The minimum value. */ min: number, /** The maximum value. */ max: number); /** * Parses a string like "4" or "2..5.5" to a number range. Returns null on * failure. * @param input A string, e.g. "4" or "2..5.5". */ static parse(input: string): NumberRange | null; /** E.g. "4" or "2..5.5". */ asString(): string; }