import type { IScanDeviceRes } from './interface/iDevice'; /** * 蓝牙设备管理 */ export declare class BluetoothManager { static _isBluetoothEnabled(): Promise; /** * 检查蓝牙服务是否启用 */ static isBluetoothEnabled(): Promise; /** * 启用蓝牙服务。 只有 android 有用, ios 直接返回 null */ static enableBluetooth(): Promise; /** * 关闭蓝牙服务。 只有 android 有用, ios 不可用 */ static disableBluetooth(): Promise; /** * 扫描蓝牙设备。 */ static scanDevices(): Promise; /** * 连接蓝牙设备 * @param address 蓝牙设备地址 */ static connect(address: string): Promise; /** * 断开蓝牙设备 * @param address 蓝牙设备地址 */ static disconnect(address: string): Promise; }