import type { stripLightServiceData } from '../types/bledevicestatus.js'; import type { NobleTypes } from '../types/types.js'; import { Buffer } from 'node:buffer'; import { SwitchbotDevice } from '../device.js'; /** * Class representing a WoStrip device. * @see https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/blob/latest/devicetypes/ledstriplight.md */ export declare class WoStrip extends SwitchbotDevice { /** * Parses the service data from the SwitchBot Strip Light. * @param {Buffer} serviceData - The service data buffer. * @param {Function} emitLog - The function to emit log messages. * @returns {Promise} - Parsed service data or null if invalid. */ static parseServiceData(serviceData: Buffer, emitLog: (level: string, message: string) => void): Promise; constructor(peripheral: NobleTypes['peripheral'], noble: NobleTypes['noble']); /** * Reads the state of the strip light. * @returns {Promise} - Resolves with true if the strip light is ON, false otherwise. */ readState(): Promise; /** * Sets the state of the strip light. * @public * @param {number[]} reqByteArray - The request byte array. * @returns {Promise} - Resolves with true if the operation was successful. */ setState(reqByteArray: number[]): Promise; /** * Turns the strip light on. * @returns {Promise} - Resolves with true if the strip light is ON. */ turnOn(): Promise; /** * Turns the strip light off. * @returns {Promise} - Resolves with true if the strip light is OFF. */ turnOff(): Promise; /** * Sets the brightness of the strip light. * @param {number} brightness - The brightness percentage (0-100). * @returns {Promise} - Resolves with true if the operation was successful. */ setBrightness(brightness: number): Promise; /** * Sets the RGB values of the strip light. * @param {number} brightness - The brightness percentage (0-100). * @param {number} red - The red value (0-255). * @param {number} green - The green value (0-255). * @param {number} blue - The blue value (0-255). * @returns {Promise} - Resolves with true if the operation was successful. */ setRGB(brightness: number, red: number, green: number, blue: number): Promise; /** * Operates the strip light with the given byte array. * @public * @param {number[]} bytes - The byte array to send. * @returns {Promise} - Resolves with true if the operation was successful. */ operateStripLight(bytes: number[]): Promise; } //# sourceMappingURL=wostrip.d.ts.map