import { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service, Characteristic } from 'homebridge'; import { RgbServer, RgbDevice, RgbDeviceContext } from './rgb'; /** * HomebridgePlatform * This class is the main constructor for the plugin, this is where it should * parse the user config and discover/register accessories with Homebridge. */ export declare class OpenRgbPlatform implements DynamicPlatformPlugin { readonly log: Logger; readonly config: PlatformConfig; readonly api: API; readonly Service: typeof Service; readonly Characteristic: typeof Characteristic; accessories: PlatformAccessory[]; handlerUuids: string[]; constructor(log: Logger, config: PlatformConfig, api: API); /** * This function is invoked when Homebridge restores cached accessories from disk at startup. * It should be used to setup event handlers for characteristics and update respective values. */ configureAccessory(accessory: PlatformAccessory): void; /** * Register discovered accessories. * Accessories must only be registered once, previously created accessories * must not be registered again to prevent "duplicate UUID" errors. */ discoverDevices(): Promise; /** For generating a UUID for an RGB device from a globally unique but constant set of inputs */ genUuid(device: RgbDevice): string; /** * For opening connection to OpenRGB SDK server and closing it after performing * the action passed as a function which receives the parameters: * client (the connection object) and devices (array of RGB device info) */ rgbConnection(server: RgbServer, action: (client: any, devices: RgbDevice[]) => void | Promise): Promise; } //# sourceMappingURL=platform.d.ts.map