export const getHeatBounds = ({ mode, minHeat, maxHeat, maxCool, delta, }) => {
    const actualMaxHeat = mode === 'heat_cool' ? Math.min(maxHeat - delta, maxCool - delta) : maxHeat;
    return { min: minHeat, max: actualMaxHeat };
};
export const getCoolBounds = ({ mode, minHeat, minCool, maxCool, delta, }) => {
    const actualMinCool = mode === 'heat_cool' ? Math.max(minCool + delta, minHeat + delta) : minCool;
    return { min: actualMinCool, max: maxCool };
};
export const getTemperatureBounds = (controlBounds) => ({
    heat: getHeatBounds(controlBounds),
    cool: getCoolBounds(controlBounds),
});
//# sourceMappingURL=temperature-bounds.js.map