/** * Returns whether the specified character is a digit (0-9); * @param character The character to be tested. * @returns true if character is a digit; false otherwise. */ export declare function isDigit(character: string | undefined | null): boolean; /** * Returns whether the specified text is a number (integer or float). * @param text The text to be tested. * @returns true if text is a number; false otherwise. */ export declare function isNumber(text: string | undefined | null): boolean; /** * Returns the specified text as a number. If text cannot be converted to a number, the * behavior depends on whether a defaultValue parameter is supplied:\ * - If defaultValue is supplied, it is returned.\ * - If defaultValue is not supplied, a [[ConversionError]] is thrown. * @param text The text to be converted. * @param defaultValue The value to be returned if text cannot be converted to a number. * @returns The value of text as a number or Number.NaN if text was not a number. * @throws [[ConversionError]] If text cannot be converted to a number and defaultValue * is not supplied. */ export declare function toNumber(text: string | undefined | null, defaultValue?: number): number; /** * Converts the specified value to a JavaScript Object Notation (JSON) string.\ * Unlike JSON.stringify, this function will not throw an error if value contains a circular reference. * Instead, the value of the circular reference will be replaced with the text "``````".\ * NOTE: This implementation is not perfect - if an array contains the same object twice, the second item * will be output as "``````". * @param value The value to be stringified. * @param space A string or number object that's used to insert white space into the output JSON string for readability purposes.\ * If this is a number, it indicates the number of space characters to use as white space; this number is capped at 10 (if it is greater, the value is 10). Values less than 1 indicate that no space should be used.\ * If this is a string, the string (or the first 10 characters of the string, if it's longer than that) is used as white space. If this parameter is not provided (or is null), no white space is used. * @returns A JSON string representation of the specified value. */ export declare function stringifySafe(value: unknown, space?: string | number): string;