import type { colorBulbServiceData } from '../types/bledevicestatus.js'; import type { NobleTypes } from '../types/types.js'; import { Buffer } from 'node:buffer'; import { SwitchbotDevice } from '../device.js'; /** * Class representing a WoBulb device. * @see https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/blob/latest/devicetypes/colorbulb.md */ export declare class WoBulb extends SwitchbotDevice { /** * Parses the service data for WoBulb. * @param {Buffer} serviceData - The service data buffer. * @param {Buffer} manufacturerData - The manufacturer data buffer. * @param {Function} emitLog - The function to emit log messages. * @returns {Promise} - Parsed service data or null if invalid. */ static parseServiceData(serviceData: Buffer, manufacturerData: Buffer, emitLog: (level: string, message: string) => void): Promise; constructor(peripheral: NobleTypes['peripheral'], noble: NobleTypes['noble']); /** * Reads the state of the bulb. * @returns {Promise} - Resolves with a boolean indicating whether the bulb is ON (true) or OFF (false). */ readState(): Promise; /** * Sets the state of the bulb. * @param {number[]} reqByteArray - The request byte array. * @returns {Promise} - Resolves with a boolean indicating whether the operation was successful. * @private */ setState(reqByteArray: number[]): Promise; /** * Turns on the bulb. * @returns {Promise} - Resolves with a boolean indicating whether the bulb is ON (true). */ turnOn(): Promise; /** * Turns off the bulb. * @returns {Promise} - Resolves with a boolean indicating whether the bulb is OFF (false). */ turnOff(): Promise; /** * Sets the brightness of the bulb. * @param {number} brightness - The brightness percentage (0-100). * @returns {Promise} - Resolves with a boolean indicating whether the operation was successful. */ setBrightness(brightness: number): Promise; /** * Sets the color temperature of the bulb. * @param {number} color_temperature - The color temperature percentage (0-100). * @returns {Promise} - Resolves with a boolean indicating whether the operation was successful. */ setColorTemperature(color_temperature: number): Promise; /** * Sets the RGB color of the bulb. * @param {number} brightness - The brightness percentage (0-100). * @param {number} red - The red color value (0-255). * @param {number} green - The green color value (0-255). * @param {number} blue - The blue color value (0-255). * @returns {Promise} - Resolves with a boolean indicating whether the operation was successful. */ setRGB(brightness: number, red: number, green: number, blue: number): Promise; /** * Sends a command to the bulb. * @param {number[]} bytes - The command bytes. * @returns {Promise} - Resolves with a boolean indicating whether the operation was successful. * @private */ private operateBulb; } //# sourceMappingURL=wobulb.d.ts.map