import { model } from '@peter-murray/hue-bridge-model'; import { ApiDefinition } from './http/ApiDefinition'; import { KeyValueType } from '../commonTypes'; import { Api } from './Api'; type LightStateType = model.LightState | KeyValueType; type LightId = number | string | model.Light; type LightsType = model.Light | model.Luminaire | model.Lightsource; export declare class Lights extends ApiDefinition { private _lightStateLimiter; constructor(hueApi: Api); getAll(): Promise; getLight(id: LightId): Promise; getLightByName(name: string): Promise; /** Discovers the "new" lights detected by the Bridge. */ getNew(): Promise; /** Starts a search for "new"/undiscovered Lights by the bridge. This can take up to 30 seconds to complete. */ searchForNew(): Promise; getLightAttributesAndState(id: LightId): Promise; getLightState(id: LightId): Promise; /** * Sets the current state for the Light to desired settings. */ setLightState(id: LightId, state: LightStateType): Promise; /** * Renames a Light on the Bridge to the specified name in the Light instance. */ renameLight(light: Lights): Promise; deleteLight(id: LightId): Promise; _setLightState(id: LightId, state: KeyValueType | LightStateType, device: LightsType): Promise; } export {};