/** * Parses a string into a number and returns it. If the parsed value is not a * number or is outside the [min, max] range, returns the default value. * @param {string | null} value - The string to be parsed. * @param {number} defaultValue - The default value returned if the parsed value is invalid. * @param {number} min - The minimum value allowed (inclusive). * @param {number} [max] - The maximum value allowed (inclusive). Defaults to Infinity. * @returns {number} - The parsed number or the default value. */ export declare function parseNumber(value: string | null, defaultValue: number, min: number, max?: number): number; /** * Parses a JSON string and returns the resulting JavaScript value. * @param {string | null} value - The JSON string to parse. * @param {*} defaultValue - The value to return if the input is empty or cannot be parsed. * @returns {*} The parsed value or the default value. */ export declare function parseJSON(value: string | null, defaultValue: any): any; /** * Parses a value and returns it if it is included in the options array, * otherwise returns the default value. * @param {*} value - The value to parse. * @param {*} defaultValue - The default value returned if the value is not included. * @param {Array} options - The array of options to check against. * @returns {*} - The parsed value or the default value. */ export declare function parseOption(value: any, defaultValue: any, options: Array): any;