import type { Buffer } from 'node:buffer'; import type { LockCommandSet, LockModel } from '../settings.js'; import type { LockCommands, LockStatus } from '../types/device.js'; import { SequenceDevice } from './sequence-device.js'; /** Charge of the Lock Pro's two battery bays; undefined for an empty bay */ export interface LockBatteryBays { leftBattery?: number; rightBattery?: number; } /** * Decode the Lock Pro battery bays reply (pySwitchbot `_parse_battery_bays`): bytes 1 and 2 are * the left and right bay, bit 7 set when a battery is present and bits 0-6 its level. */ export declare function parseLockBatteryBays(reply: Buffer): LockBatteryBays; /** * Smart Lock Pro Device (with unlatch support) */ export declare class WoSmartLockPro extends SequenceDevice implements LockCommands { private lockNotificationHandlers; /** The lock model used when the device type does not name one */ protected readonly defaultLockModel: LockModel; /** This lock's model, which selects its BLE commands (pySwitchbot's per-model tables) */ get lockModel(): LockModel; protected get lockCommands(): LockCommandSet; /** Lock state comes from the manufacturer data in advertisements, as in pySwitchbot */ protected get readsFromAdvertisement(): boolean; /** * Lock the lock */ lock(): Promise; /** * Unlock the lock */ unlock(): Promise; /** * Unlock without unlatching the door */ unlockWithoutUnlatch(): Promise; /** * Unlatch the lock. An unlock also unlatches when the lock's unlatch feature is on, so this * sends the unlock command (pySwitchbot has no separate unlatch command). */ unlatch(): Promise; /** * Read the level of each battery bay (Lock Pro only, BLE only; pySwitchbot 3.11.0). Returns * undefined when the lock refuses the request or the reply is too short. */ getBatteryBays(): Promise; getLockInfo(): Promise>; onLockNotification(handler: (payload: Buffer) => void): Promise; offLockNotification(handler: (payload: Buffer) => void): void; /** * Get device status (BLE-first, API-fallback) */ getStatus(): Promise; } //# sourceMappingURL=wo-lock-pro.d.ts.map