import type { API, HAP, Logging, PlatformAccessory } from 'homebridge'; import type { RainBirdService } from 'rainbird'; import type { Subscription } from 'rxjs'; import type { RainbirdPlatform } from '../Platform.HAP.js'; import type { devicesConfig, RainbirdPlatformConfig } from '../settings.js'; export declare abstract class DeviceBase { protected readonly platform: RainbirdPlatform; protected accessory: PlatformAccessory; protected device: devicesConfig; protected rainbird: RainBirdService; /** * Everything this device subscribed to - controller status events and the * polling interval. Homebridge emits 'shutdown' so a plugin can stop its own * work; without this these kept firing at a controller while the bridge was * tearing down, and held the process open. */ protected readonly subscriptions: Subscription[]; /** Stop everything this device started. Called by the platform on shutdown. */ shutdown(): void; readonly api: API; readonly log: Logging; readonly config: RainbirdPlatformConfig; protected readonly hap: HAP; protected deviceLogging: string; protected deviceRefreshRate: number; protected devicePushRate: number; protected deviceFirmwareVersion: string; constructor(platform: RainbirdPlatform, accessory: PlatformAccessory, device: devicesConfig, rainbird: RainBirdService); getDeviceLogSettings(device: devicesConfig): Promise; getDeviceRateSettings(device: devicesConfig): Promise; getDeviceConfigSettings(device: devicesConfig): Promise; getDeviceContext(accessory: PlatformAccessory, device: devicesConfig): 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; /** * ⚠️ True in a normal install, because 'debugMode' means "let Homebridge * decide" rather than "debug is on". Only ever gate 'log.debug' on this. * * Gating 'log.warn', 'log.error' or 'log.success' on it prints those lines to * everyone, since Homebridge shows those levels whatever its debug setting - * which is exactly what happened to three of the helpers above (#243). */ loggingIsDebug(): Promise; enablingDeviceLogging(): Promise; } //# sourceMappingURL=DeviceBase.d.ts.map