@constructorfleet/ultimate-govee
Version:
Library for interacting with Govee devices written in Typescript.
26 lines • 1.15 kB
TypeScript
import { OnApplicationBootstrap } from '@nestjs/common';
import { DecoderConfig } from './decoder.config';
import { ConfigType } from '@nestjs/config';
import { DecodedDevice, DecoderDeviceSpecification } from './decoder.types';
import { BlePeripheral } from '..';
import { Decoder } from './lib/decoder';
import { Optional } from '../../../common';
export declare class DecoderService implements OnApplicationBootstrap {
private readonly config;
private readonly decoder;
private readonly logger;
private readonly properties;
private readonly deviceSpecifications;
private readonly deviceProperties;
constructor(config: ConfigType<typeof DecoderConfig>, decoder: typeof Decoder);
decodeDevice(peripheral: BlePeripheral): Promise<Optional<DecodedDevice>>;
getCommonProperties(): Promise<void>;
getDeviceSpec(model: string): Promise<DecoderDeviceSpecification | undefined>;
private processHeaderFile;
private getHeaderFile;
private findJsonInResponse;
private getJsonItemName;
private getJsonItemValue;
onApplicationBootstrap(): Promise<void>;
}
//# sourceMappingURL=decoder.service.d.ts.map