import { getRangeSteps } from "./getRangeSteps.js";
import { nearest } from "./nearest.js";
/**
 * @internal
 * @remarks \@since 6.0.0
 */ export function getMiddleOfRange(options) {
    const { min, max, step } = options;
    return nearest({
        min,
        max,
        steps: getRangeSteps({
            min,
            max,
            step
        }),
        value: (max - min) / 2 + min
    });
}

//# sourceMappingURL=getMiddleOfRange.js.map