import type { API, DynamicPlatformPlugin, Logger, PlatformConfig } from 'homebridge'; import { IDeviceProps, IDeviceDiscoveredProps, IDeviceQueriedProps } from './magichome-interface/types'; import { MagicHomeAccessory } from './magichome-interface/types'; /** * HomebridgePlatform * This class is the main constructor for your plugin, this is where you should * parse the user config and discover/register accessories with Homebridge. */ export declare class HomebridgeMagichomeDynamicPlatform implements DynamicPlatformPlugin { readonly hbLogger: Logger; readonly config: PlatformConfig; readonly api: API; readonly Service: typeof import("homebridge").Service; readonly Characteristic: typeof import("homebridge").Characteristic; readonly accessories: MagicHomeAccessory[]; count: number; private periodicDiscovery; private logs; constructor(hbLogger: 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: MagicHomeAccessory): void; /** * Accessories are added by one of three Methods: * Method One: New devices that were seen after scanning the network and are registered for the first time * Method Two: Cached devices that were seen after scanning the network and are added while checking for ip discrepancies * Method Three: Cached devices that were not seen after scanning the network but are still added with a warning to the user */ discoverDevices(dgb: boolean | null): Promise; isAllowed(uniqueId: any): boolean; getInitialState(ipAddress: any, _timeout?: number): Promise; determineController(discoveredDevice: any): Promise; /** * Accessory Generation Method One: UUID has not been seen before. Register new accessory. * Accessories must only be registered once, previously created accessories * must not be registered again to prevent "duplicate UUID" errors. * @param deviceDiscovered * @param generatedUUID */ createNewAccessory(deviceDiscovered: IDeviceDiscoveredProps, generatedUUID: any): Promise; /** * Accessory Generation Method Two: UUID has been seen before. Load from cache. * Test if seen accessory "is allowed" and that the IP address is identical * @param deviceDiscovered * @param existingAccessory */ registerExistingAccessory(deviceDiscovered: any, existingAccessory: MagicHomeAccessory): boolean; printDeviceInfo(message: string, accessory: MagicHomeAccessory): void; send(transport: any, command: number[], useChecksum?: boolean, _timeout?: number): Promise; static isValidDeviceModel(_device: IDeviceProps, logger: any): boolean; } //# sourceMappingURL=platform.d.ts.map