import type { API, HAP, Logging, PlatformAccessory } from 'homebridge'; import type { Subscription } from 'rxjs'; import type { ResideoPlatform } from '../Platform.HAP.js'; import type { devicesConfig, location, resideoDevice, ResideoPlatformConfig, sensorAccessory, T9groups } from '../settings.js'; declare module 'homebridge' { interface PlatformAccessory { control?: deviceBase; } } export declare abstract class deviceBase { protected readonly platform: ResideoPlatform; protected accessory: PlatformAccessory; protected location: location; protected device: resideoDevice & devicesConfig; sensorAccessory?: sensorAccessory | undefined; readonly group?: T9groups | undefined; /** * Anything this device subscribed to. Homebridge emits 'shutdown' so a plugin * can stop its own work; without this the polling intervals kept calling the * Resideo API while the bridge was tearing down, and held the process open. */ private readonly subscriptions; /** Register a subscription so it is torn down on shutdown. */ protected track(subscription: Subscription): Subscription; /** Stop everything this device started. Called by the platform on shutdown. */ shutdown(): void; readonly api: API; readonly log: Logging; readonly config: ResideoPlatformConfig; protected readonly hap: HAP; protected deviceLogging: string; protected deviceRefreshRate: number; protected devicePushRate: number; protected deviceFirmwareVersion: string; protected deviceMaxRetries: number; protected deviceDelayBetweenRetries: number; constructor(platform: ResideoPlatform, accessory: PlatformAccessory, location: location, device: resideoDevice & devicesConfig, sensorAccessory?: sensorAccessory | undefined, group?: T9groups | undefined); getDeviceLogSettings(device: resideoDevice & devicesConfig): Promise; getDeviceRateSettings(device: resideoDevice & devicesConfig): Promise; getDeviceConfigSettings(device: resideoDevice & devicesConfig): Promise; getDeviceContext(accessory: PlatformAccessory, device: resideoDevice & devicesConfig, sensorAccessory?: sensorAccessory): Promise; statusCode(statusCode: number, action: string): Promise; resideoAPIError(e: any, action: string): Promise; /** * Logging for Device */ infoLog(...log: any[]): Promise; successLog(...log: any[]): Promise; debugSuccessLog(...log: any[]): Promise; warnLog(...log: any[]): Promise; debugWarnLog(...log: any[]): Promise; errorLog(...log: any[]): Promise; debugErrorLog(...log: any[]): Promise; debugLog(...log: any[]): Promise; enablingDeviceLogging(): Promise; } //# sourceMappingURL=device.d.ts.map