import type { blindTiltServiceData } from "../types/bledevicestatus.js"; import type { NobleTypes } from "../types/types.js"; import { Buffer } from "node:buffer"; import { SwitchbotDevice } from "../device.js"; /** * Class representing a WoBlindTilt device. * @see https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/blob/latest/devicetypes/curtain.md */ export declare class WoBlindTilt extends SwitchbotDevice { private _reverse; /** * Parses the service data and manufacturer data for the WoBlindTilt device. * @param {Buffer} serviceData - The service data buffer. * @param {Buffer} manufacturerData - The manufacturer data buffer. * @param {Function} emitLog - The function to emit log messages. * @param {boolean} [reverse] - Whether to reverse the tilt percentage. * @returns {Promise} - The parsed data object or null if the data is invalid. */ static parseServiceData(serviceData: Buffer, manufacturerData: Buffer, emitLog: (level: string, message: string) => void, reverse?: boolean): Promise; constructor(peripheral: NobleTypes["peripheral"], noble: NobleTypes["noble"]); /** * Opens the blind tilt to the fully open position. * @returns {Promise} */ open(): Promise; /** * Closes the blind tilt up to the nearest endpoint. * @returns {Promise} */ closeUp(): Promise; /** * Closes the blind tilt down to the nearest endpoint. * @returns {Promise} */ closeDown(): Promise; /** * Closes the blind tilt to the nearest endpoint. * @returns {Promise} */ close(): Promise; /** * Retrieves the current position of the blind tilt. * @returns {Promise} - The current position of the blind tilt (0-100). */ getPosition(): Promise; /** * Retrieves the advertised value for a given key. * @param {string} key - The key for the advertised value. * @returns {Promise} - The advertised value. * @private */ private _getAdvValue; /** * Retrieves the basic information of the blind tilt. * @returns {Promise} - A promise that resolves to an object containing the basic information of the blind tilt. */ getBasicInfo(): Promise; /** * Pauses the blind tilt operation. * @returns {Promise} */ pause(): Promise; /** * Runs the blind tilt to the specified position. * @param {number} percent - The target position percentage (0-100). * @param {number} mode - The running mode (0 or 1). * @returns {Promise} */ runToPos(percent: number, mode: number): Promise; /** * Sends a command to operate the blind tilt and handles the response. * @param {number[]} bytes - The byte array representing the command to be sent to the device. * @returns {Promise} * @private */ operateBlindTilt(bytes: number[]): Promise; } //# sourceMappingURL=woblindtilt.d.ts.map