/** * Rounds a number to the nearest step within a min/max range. * * @see https://stackoverflow.com/a/13635455 * @param value - The value to round to the nearest step * @param min - The min value allowed * @param max - The max value allowed * @param steps - The number of steps in the min/max range * @param range - The range allowed for the value that defaults to `max - min` * @returns the value rounded to the nearest step in the min/max range * @remarks \@since 2.5.0 - Added the `range` param */ export declare function nearest(value: number, min: number, max: number, steps: number, range?: number): number;