@zunderscore/elgato-light-control
Version:
Javascript wrapper for Elgato Key Lights and Light Strip control
37 lines (36 loc) • 1.08 kB
TypeScript
import { EventEmitter } from "events";
import { KeyLight, KeyLightOptions } from "./types/KeyLight";
export declare class ElgatoKeyLightController extends EventEmitter {
keyLights: Array<KeyLight>;
/**
* Creates an instance of ElgatoKeyLightController.
*
* @memberof ElgatoKeyLightController
*/
constructor();
/**
* Adds a Key Light instance to our current array
*
* @private
* @param {KeyLight} keyLight
* @memberof ElgatoKeyLightController
*/
private addKeylight;
/**
* Updates a Key Light to the given options
*
* @param {KeyLight} light
* @param {KeyLightOptions} options
* @returns {Promise<void>}
* @memberof ElgatoKeyLightController
*/
updateLightOptions(light: KeyLight, options: KeyLightOptions): Promise<void>;
/**
* Updates all lights to the given options
*
* @param {KeyLightOptions} options
* @returns {Promise<void>}
* @memberof ElgatoKeyLightController
*/
updateAllLights(options: KeyLightOptions): Promise<void>;
}