import { Peripheral } from "@stoprocent/noble"; import { IBLEAbstraction } from "../interfaces.js"; import { BaseHub } from "./basehub.js"; /** * The WeDo2SmartHub is emitted if the discovered device is a WeDo 2.0 Smart Hub. * @class WeDo2SmartHub * @extends BaseHub */ export declare class WeDo2SmartHub extends BaseHub { static IsWeDo2SmartHub(peripheral: Peripheral): boolean; private _lastTiltX; private _lastTiltY; constructor(device: IBLEAbstraction); connect(): Promise; /** * Shutdown the Hub. * @returns {Promise} Resolved upon successful disconnect. */ shutdown(): Promise; /** * Set the name of the Hub. * @param {string} name New name of the hub (14 characters or less, ASCII only). * @returns {Promise} Resolved upon successful issuance of command. */ setName(name: string): Promise; send(message: Buffer, uuid: string): Promise; subscribe(portId: number, deviceType: number, mode: number): void; unsubscribe(portId: number, deviceType: number, mode: number): void; private _getCharacteristicNameFromUUID; private _parseHighCurrentAlert; private _parseBatteryMessage; private _parseFirmwareRevisionString; private _parsePortMessage; private _parseSensorMessage; } export declare const PortMap: { [portName: string]: number; }; //# sourceMappingURL=wedo2smarthub.d.ts.map