import { blueToothDeviceInfoType, searchDeviceOptionsType } from './type';
declare class BluetoothAdapter {
    #private;
    constructor();
    initBluetooth(): Promise<WechatMiniprogram.BluetoothError | string>;
    startSearch(options: searchDeviceOptionsType, timeout?: number): void;
    searchDevice({ productId, deviceName }: {
        productId: string;
        deviceName: string;
    }): Promise<WechatMiniprogram.BlueToothDevice & {
        deviceId: string;
    } | WechatMiniprogram.BluetoothError>;
    stopSearch(): void;
    connectDevice(device: WechatMiniprogram.BlueToothDevice): Promise<blueToothDeviceInfoType | WechatMiniprogram.BluetoothError>;
}
export default BluetoothAdapter;
