UNPKG

homebridge-framework

Version:
27 lines (26 loc) 964 B
import { HomebridgePlatform } from './homebridge-platform'; import { API } from 'homebridge'; import { Service as HapService, Characteristic as HapCharacteristic, Categories as HapCategory } from 'hap-nodejs'; /** * Represents the helper for registering the platform. */ export declare class Homebridge { /** * Creates a registration function for the platform and returns it. * @param platform The platform that should be registered. * @returns Returns the registration function that can be exported in the main file. */ static register<TConfiguration>(platform: HomebridgePlatform<TConfiguration>): (api: API) => void; /** * Gets the HAP service types. */ static get Services(): typeof HapService; /** * Gets the HAP characteristic types. */ static get Characteristics(): typeof HapCharacteristic; /** * Gets the HAP categories. */ static get Categories(): typeof HapCategory; }