UNPKG

elgato-light-api

Version:

Control Elgato Key Lights and Light Strips using Javascript!

39 lines (38 loc) 1.12 kB
/// <reference types="node" /> import { EventEmitter } from "events"; import { KeyLight, KeyLightOptions } from "./types/KeyLight"; export declare class ElgatoKeylightAPI extends EventEmitter { private bonjour; keyLights: Array<KeyLight>; /** * Creates an instance of ElgatoKeylightAPI. * * @memberof ElgatoKeylightAPI */ constructor(); /** * Adds a key light instance to our current array * * @private * @param {Service} service * @memberof ElgatoKeylightAPI */ private addKeylight; /** * Updates a light to the given options * * @param {KeyLight} light * @param {KeyLightOptions} options * @returns {Promise<any>} * @memberof ElgatoKeylightAPI */ updateLightOptions(light: KeyLight, options: KeyLightOptions): Promise<any>; /** * Updates all lights to the given options * * @param {KeyLightOptions} options * @returns {Promise<any>} * @memberof ElgatoKeylightAPI */ updateAllLights(options: KeyLightOptions): Promise<any>; }