import type { ConvertUnitsOption } from './settings.js'; /** * Converts the value to celsius if the temperature units are in Fahrenheit */ export declare function toCelsius(value: number, unit: number): number; export declare function toCelsiusWithOverride(value: number, unit: number, convertUnits?: ConvertUnitsOption): number; /** * Converts the value to fahrenheit if the temperature units are in Fahrenheit */ export declare function toFahrenheit(value: number, unit: number): number; export declare enum HomeKitModes { Off = 0,// this.hap.Characteristic.TargetHeatingCoolingState.OFF Heat = 1,// this.hap.Characteristic.TargetHeatingCoolingState.HEAT Cool = 2,// this.hap.Characteristic.TargetHeatingCoolingState.COOL Auto = 3 } export declare enum ResideoModes { Off = "Off", Heat = "Heat", Cool = "Cool", Auto = "Auto" } /** * Creates a proxy class that instantiates the correct platform implementation * (HAP or Matter) at runtime based on the user's configuration and the * availability of the Matter API in the running Homebridge instance. * * @param HAPPlatform The HAP platform class constructor. * @param MatterPlatform The Matter platform class constructor. * @returns A proxy class that delegates to the correct platform implementation. */ export declare function createPlatformProxy(HAPPlatform: any, MatterPlatform: any): any; /** * The largest delay a Node timer can hold, because it is stored in a signed * 32-bit integer. Roughly 24.85 days. */ export declare const MAX_TIMER_MS = 2147483647; /** * Keep a computed delay inside the range a Node timer can represent. * * Going over the limit does not throw. Node prints a TimeoutOverflowWarning and * quietly sets the delay to 1 ms, so a timer meant to fire in weeks fires a * thousand times a second instead - which for a polling loop means hammering * the service it polls. * * Clamping means a delay longer than 24.85 days simply fires at 24.85 days, * which for every setting here is early rather than wrong. */ export declare function safeTimerMs(ms: number): number; //# sourceMappingURL=utils.d.ts.map