import { Listener } from 'jsignal'; import type * as noble from '@abandonware/noble'; import { PostCubeVersion } from '../constants/bluetooth'; import { PostCube, ScanOptions, ScanResult, Unwatch } from './postcube'; export declare const isEnabled: () => Promise; export declare const requestPostCube: (namePrefix: string, services?: (string | number)[]) => Promise; export declare const scanForPostCubes: (options?: ScanOptions, services?: (string | number)[]) => Promise; export declare class PostCubeNode extends PostCube { static PlatformName: string; readonly peripheral: noble.Peripheral; private _version; get deviceId(): string; get isConnected(): boolean; get version(): PostCubeVersion; constructor(peripheral: noble.Peripheral); protected tmpl(string: string): string; private getCharacteristic; connect(timeoutMs?: number): Promise; disconnect(timeoutMs?: number): Promise; read(serviceUUID: string, characteristicUUID: string, timeoutMs?: number): Promise; write(serviceUUID: string, characteristicUUID: string, value: DataView, timeoutMs?: number): Promise; startNotifications(serviceUUID: string, characteristicUUID: string, timeoutMs?: number): Promise; watchNotifications(serviceUUID: string, characteristicUUID: string, listener: Listener, timeoutMs?: number): Promise; }