import { AdjustmentOperationBasic } from '../common'; import { BooleanBasic } from '../common/boolean'; /** * Adjust a number by adding, subtracting, multiplying by, dividing by, or computing the modulo with another number. * @param firstOperand The number to adjust (left-hand operand). * @param operation The adjustment operation to perform. * @param secondOperand The adjustment amount (right-hand operand). * * @throws {InvalidNumberError} The value provided for "" is not a valid number. * @throws {InvalidAdjustmentOperationError} "" is not a valid adjustment operation. */ export declare function adjustBasic(firstOperand: number | string, operation: AdjustmentOperationBasic | O, secondOperand: number | string): number; /** * Adjust a number rounding or flooring it. * @param num The number to adjust. * @param precision The precision to round to. * * @throws {InvalidNumberError} The value provided for "" is not a valid number. */ export declare function round(num: number | string, precision?: number | string): number; /** * Adjust a number flooring it. * @param num The number to adjust. * @param precision The precision to floor to. * * @throws {InvalidNumberError} The value provided for "" is not a valid number. */ export declare function floor(num: number | string, precision?: number | string): number; /** * Adjust a number ceiling it. * @param num The number to adjust. * @param precision The precision to ceil to. * * @throws {InvalidNumberError} The value provided for "" is not a valid number. */ export declare function ceil(num: number | string, precision?: number | string): number; /** * Compute the absolute value of a number. * @param num The number to adjust. * * @returns Absolute value of the number. * @throws {InvalidNumberError} The value provided for "" is not a valid number. */ export declare function abs(num: number | string): number; /** * Check if the first number is less than the second. * @param firstNumber The value to compare. * @param secondNumber The other value to compare. * * @returns True if the first number is less than the second. False otherwise. * * @throws {InvalidNumberError} The value provided for "" is not a valid number. */ export declare function lessThan(firstNumber: number | string, secondNumber: number | string): boolean; /** * Check if the first number is less than or equal to the second. * @param firstNumber The value to compare. * @param secondNumber The other value to compare. * * @returns True if the first number is less than or equal the second. False otherwise. * @throws {InvalidNumberError} The value provided for "" is not a valid number. */ export declare function lessThanOrEqual(firstNumber: number | string, secondNumber: number | string): boolean; /** * Check if the first number is greater than the second. * @param firstNumber The value to compare. * @param secondNumber The other value to compare. * * @returns True if the first number is greater than the second. False otherwise. * * @throws {InvalidNumberError} The value provided for "" is not a valid number. */ export declare function greaterThan(firstNumber: number | string, secondNumber: number | string): boolean; /** * Check if the first number is greater than or equal to the second. * @param firstNumber The value to compare. * @param secondNumber The other value to compare. * * @returns True if the first number is greater than than or equal the second. False otherwise. * @throws {InvalidNumberError} The value provided for "" is not a valid number. */ export declare function greaterThanOrEqual(firstNumber: number | string, secondNumber: number | string): boolean; /** * Check if a number is between two values, non-inclusive of the ending value. * @param number The number to check. * @param start The start of the range. * @param end The end of the range. * * @returns True if the number is within the specified range. False otherwise. * * @throws {InvalidNumberError} The value provided for "" is not a valid number. */ export declare function inRange(number: number | string, start: number | string, end: number | string): boolean; /** * Generate a random number between inclusive lower and upper bounds. * @param lower The lower bound. * @param upper The upper bound. * @param floating Whether to return a floating-point number. * * @returns The random number. * * @throws {InvalidNumberError} The value provided for "" is not a valid number. */ export declare function random(lower: number | string, upper: number | string, floating?: boolean): number; export declare function randomBasic(lower: number | string, upper: number | string, floating?: BooleanBasic | F): number;