UNPKG

elgato-light-api

Version:

Control Elgato Key Lights and Light Strips using Javascript!

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