UNPKG

@zunderscore/elgato-light-control

Version:

Javascript wrapper for Elgato Key Lights and Light Strip control

37 lines (36 loc) 1.13 kB
import { EventEmitter } from "events"; import { LightStrip, LightStripOptions } from "./types/LightStrip"; export declare class ElgatoLightStripController extends EventEmitter { lightStrips: Array<LightStrip>; /** * Creates an instance of ElgatoLightStripController. * * @memberof ElgatoLightStripController */ constructor(); /** * Adds a new Light Strip instance to our current array * * @private * @param {LightStrip} lightStrip * @memberof ElgatoLightStripController */ private addLightstrip; /** * Updates a Light Strip to the given options * * @param {LightStrip} light * @param {LightStripOptions} options * @returns {Promise<void>} * @memberof ElgatoLightStripController */ updateLightOptions(light: LightStrip, options: LightStripOptions): Promise<void>; /** * Updates all lights to the given options * * @param {LightStripOptions} options * @returns {Promise<void>} * @memberof ElgatoLightStripController */ updateAllStrips(options: LightStripOptions): Promise<void>; }