homebridge-eightsleepthermostat
Version:
Homebridge thermostat accessory for the Eight Sleep Pod smart bed.
13 lines • 663 B
TypeScript
import { Logger } from 'homebridge';
export declare const clientAPI: import("axios").AxiosInstance;
interface Request<T> {
endpoint: string;
body?: Partial<T>;
}
declare type ClientDataType = string | number | boolean | object;
export declare const currentState: <T>(endpoint: string) => Request<T>;
export declare const updateState: <T>(endpoint: string, key: keyof T, newValue: ClientDataType) => Request<T>;
export declare const put: <T>(req: Request<T>, log?: Logger | undefined) => Promise<T | null>;
export declare const get: <T>(req: Request<T>, log?: Logger | undefined) => Promise<T | null>;
export {};
//# sourceMappingURL=clientRequest.d.ts.map