UNPKG

@constructorfleet/ultimate-govee

Version:

Library for interacting with Govee devices written in Typescript.

16 lines 704 B
import { Optional } from '../../../common'; import { DeviceModel } from '../devices.model'; import { DeviceOpState } from './device.state'; import { StateCommandAndStatus } from './states.types'; export declare const TimerStateName: 'timer'; export type TimerStateName = typeof TimerStateName; export type Timer = { enabled?: boolean; duration?: number; }; export declare class TimerState extends DeviceOpState<TimerStateName, Timer> { constructor(device: DeviceModel, opType?: number, ...identifier: number[]); parseOpCommand(opCommand: number[]): void; protected readonly stateToCommand: (state: Timer) => Optional<StateCommandAndStatus>; } //# sourceMappingURL=timer.state.d.ts.map