import type { plugMiniJPServiceData, plugMiniUSServiceData } from '../types/bledevicestatus.js'; import type { NobleTypes } from '../types/types.js'; import { Buffer } from 'node:buffer'; import { SwitchbotDevice } from '../device.js'; /** * Class representing a WoPlugMini device. * @see https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/blob/latest/devicetypes/plugmini.md */ export declare class WoPlugMini extends SwitchbotDevice { /** * Parses the service data for WoPlugMini US. * @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_US(manufacturerData: Buffer, emitLog: (level: string, message: string) => void): Promise; /** * Parses the service data for WoPlugMini JP. * @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_JP(manufacturerData: Buffer, emitLog: (level: string, message: string) => void): Promise; /** * Parses the service data for WoPlugMini. * @param {Buffer} manufacturerData - The manufacturer data buffer. * @param {SwitchBotBLEModel} model - The model of the plug mini. * @param {Function} emitLog - The function to emit log messages. * @returns {Promise} - Parsed service data or null if invalid. */ private static parseServiceData; constructor(peripheral: NobleTypes['peripheral'], noble: NobleTypes['noble']); /** * Reads the state of the plug. * @returns {Promise} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false). */ readState(): Promise; /** * Sets the state of the plug. * @private * @param {number[]} reqByteArray - The request byte array. * @returns {Promise} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false). */ private setState; /** * Turns on the plug. * @returns {Promise} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false). */ turnOn(): Promise; /** * Turns off the plug. * @returns {Promise} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false). */ turnOff(): Promise; /** * Toggles the state of the plug. * @returns {Promise} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false). */ toggle(): Promise; /** * Operates the plug with the given bytes. * @param {number[]} bytes - The byte array to send to the plug. * @returns {Promise} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false). */ operatePlug(bytes: number[]): Promise; } //# sourceMappingURL=woplugmini.d.ts.map