/**
 * Restricts the given number to the given range
 *
 * @export
 * @param {number} val
 * @param {number} lower
 * @param {number} upper
 */
export declare function restrictToRange(val: number, lower: number, upper: number): number;
/**
 * Indicates if the given numbers are equal
 *
 * @export
 * @param {number} a
 * @param {number} b
 * @returns {boolean}
 */
export declare function areNumbersEqual(a: number, b: number): boolean;
/**
 * Indicates if the given scale is within the specified range
 *
 * @export
 * @param {number} scale
 * @param {number} minScale
 * @param {number} maxScale
 * @returns {boolean}
 */
export declare function scaleRangeBetween(scale: number, minScale: number, maxScale: number): boolean;
/**
 * Gets the closest scale index for the given scale and scale array pair
 *
 * @export
 * @param {[number, number]} scales
 * @param {number} scale
 * @returns {number}
 */
export declare function getClosestScaleIndex(scales: [number, number], scale: number): number;
/**
 * Gets the applicable finite scale index for the given scale and finite scale array
 *
 * @export
 * @param {number[]} finiteScaleList
 * @param {number} scale
 * @returns {number}
 */
export declare function getFiniteScaleIndexForScale(finiteScaleList: number[], scale: number): number;
/**
 * Converts the given angle in degrees to radians
 * @param deg The angle in degrees
 */
export declare function deg2rad(deg: number): number;
/**
 * Converts the given angle in radians to degrees
 * @param radians
 * @since 0.13
 */
export declare function rad2deg(radians: number): number;
/**
 * Computes the sum of the given array
 *
 * @since 0.11
 * @export
 * @template T
 * @param {T[]} array
 * @param {(item: T) => number} numSelector
 * @returns {number}
 */
export declare function sum<T>(array: T[], numSelector: (item: T) => number): number;
/**
 * Rounds the given number to the specified number of decimals
 *
 * @since 0.11
 * @export
 * @param {number} num
 * @param {number} [decimals=2]
 * @returns {number}
 */
export declare function roundTo(num: number, decimals?: number): number;
