UNPKG

@constructorfleet/ultimate-govee

Version:

Library for interacting with Govee devices written in Typescript.

19 lines 841 B
import { Optional } from '../../../common'; import { DeviceModel } from '../devices.model'; import { DeviceOpState } from './device.state'; import { ParseOption, StateCommandAndStatus } from './states.types'; export declare const ActiveStateName: 'isActive'; export type ActiveStateName = typeof ActiveStateName; export type ActiveData = { state?: { isOn?: boolean; }; }; export declare class ActiveState extends DeviceOpState<ActiveStateName, Optional<boolean>> { protected readonly parseOption: ParseOption; constructor(device: DeviceModel, opType?: number, identifier?: number[]); parseState(data: ActiveData): void; parseOpCommand(opCommand: number[]): void; protected readonly stateToCommand: (state: Optional<boolean>) => Optional<StateCommandAndStatus>; } //# sourceMappingURL=active.state.d.ts.map