/** * Generates an array of evenly spaced numbers from `min` to `max` using the given `step`. * * Uses {@link decomposeFloat} to perform the arithmetic in integer space, avoiding * floating-point accumulation errors that would otherwise produce values like * `0.30000000000000004` when stepping through decimals. * * @param range - A tuple `[min, max]` defining the inclusive bounds. Order does not * matter — the smaller value is treated as `min` and the larger as `max`. * @param step - The increment between consecutive values. Must be positive and no * larger than the span `max - min`. * @returns An array of numbers from `min` to `max` spaced by `step`. * * @throws {Error} If `step` is not within `(0, max - min]`. * * @example * ```typescript * arrayScale([0, 1], 0.25); // Returns [0, 0.25, 0.5, 0.75, 1] * arrayScale([1, 5], 1); // Returns [1, 2, 3, 4, 5] * arrayScale([0, 10], 2.5); // Returns [0, 2.5, 5, 7.5, 10] * ``` */ export declare function arrayScale(range: [min: number, max: number], step: number): Array;