@constructorfleet/ultimate-govee
Version:
Library for interacting with Govee devices written in Typescript.
19 lines • 889 B
TypeScript
import { Optional } from '../../../common';
import { DeviceModel } from '../devices.model';
import { DeviceOpState } from './device.state';
import { ParseOption, StateCommandAndStatus } from './states.types';
export declare const BrightnessStateName: 'brightness';
export type BrightnessStateName = typeof BrightnessStateName;
export type BrightnessData = {
state?: {
brightness?: number;
};
};
export declare class BrightnessState extends DeviceOpState<BrightnessStateName, Optional<number>> {
protected readonly: any;
constructor(device: DeviceModel, opType?: number, identifier?: number[], parseOption?: ParseOption);
parseState(data: BrightnessData): void;
parseOpCommand(opCommand: number[]): void;
protected readonly stateToCommand: (nextState: Optional<number>) => Optional<StateCommandAndStatus>;
}
//# sourceMappingURL=brightness.state.d.ts.map