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