import { Listener } from 'jsignal'; import type { CordovaBLEDevice } from '../cordova-plugin-ble-central'; 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 PostCubeCordova extends PostCube { static PlatformName: string; private device; private deviceConnected; private _isConnected; private _version; private _detectVersionOnConnect; get deviceId(): string; get isConnected(): boolean; get version(): PostCubeVersion; private isConnectedAsync; constructor(device: CordovaBLEDevice); protected tmpl(string: string): string; 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; }