UNPKG

lifxlan

Version:

TypeScript library for controlling LIFX products over LAN

87 lines 2.83 kB
import * as Encoding from '../encoding.js'; export declare function GetServiceCommand(): { type: 2; decode: typeof Encoding.decodeStateService; defaultResponseMode: "response"; }; export declare function GetHostFirmwareCommand(): { type: 14; decode: typeof Encoding.decodeStateHostFirmware; defaultResponseMode: "response"; }; export declare function GetWifiInfoCommand(): { type: 16; decode: typeof Encoding.decodeStateWifiInfo; defaultResponseMode: "response"; }; export declare function GetWifiFirmwareCommand(): { type: 18; decode: typeof Encoding.decodeStateWifiFirmware; defaultResponseMode: "response"; }; export declare function GetPowerCommand(): { type: 20; decode: typeof Encoding.decodeStatePower; defaultResponseMode: "response"; }; export declare function SetPowerCommand(power: number | boolean): { type: 21; payload: Uint8Array<ArrayBufferLike>; decode: typeof Encoding.decodeStatePower; defaultResponseMode: "ack-only"; }; export declare function GetLabelCommand(): { type: 23; decode: typeof Encoding.decodeStateLabel; defaultResponseMode: "response"; }; export declare function SetLabelCommand(label: string): { type: 24; payload: Uint8Array<ArrayBufferLike>; decode: typeof Encoding.decodeStateLabel; defaultResponseMode: "ack-only"; }; export declare function GetVersionCommand(): { type: 32; decode: typeof Encoding.decodeStateVersion; defaultResponseMode: "response"; }; export declare function GetInfoCommand(): { type: 34; decode: typeof Encoding.decodeStateInfo; defaultResponseMode: "response"; }; export declare function SetRebootCommand(): { type: 38; decode: (_value: unknown) => void; defaultResponseMode: "ack-only"; }; export declare function GetLocationCommand(): { type: 48; decode: typeof Encoding.decodeStateLocation; defaultResponseMode: "response"; }; export declare function SetLocationCommand(location: Uint8Array | string, label: string, updatedAt: Date): { type: 49; payload: Uint8Array<ArrayBufferLike>; decode: typeof Encoding.decodeStateLocation; defaultResponseMode: "ack-only"; }; export declare function GetGroupCommand(): { type: 51; decode: typeof Encoding.decodeStateGroup; defaultResponseMode: "response"; }; export declare function SetGroupCommand(group: Uint8Array | string, label: string, updatedAt: Date): { type: 52; payload: Uint8Array<ArrayBufferLike>; decode: typeof Encoding.decodeStateGroup; defaultResponseMode: "ack-only"; }; export declare function EchoRequestCommand(echoing: Uint8Array): { type: 58; payload: Uint8Array<ArrayBufferLike>; decode: typeof Encoding.decodeEchoResponse; defaultResponseMode: "response"; }; //# sourceMappingURL=device.d.ts.map