lifxlan
Version:
TypeScript library for controlling LIFX products over LAN
18 lines • 561 B
TypeScript
export type Decoder<OutputType> = (bytes: Uint8Array, offsetRef: {
current: number;
}, continuation?: {
expectMore: boolean;
}, responseType?: number) => OutputType;
export interface Command<OutputType> {
type: number;
payload?: Uint8Array;
decode?: Decoder<OutputType>;
defaultResponseMode?: 'ack-only' | 'response' | 'both';
}
export * from './device.js';
export * from './light.js';
export * from './multizone.js';
export * from './tile.js';
export * from './relay.js';
export * from './sensor.js';
//# sourceMappingURL=index.d.ts.map