export declare const hexToArrayBuffer: typeof import("qcloud-iotexplorer-appdev-sdk").hexToArrayBuffer; export declare const arrayBufferToHexStringArray: typeof import("qcloud-iotexplorer-appdev-sdk").arrayBufferToHexStringArray; export declare class SimpleStore { filter: (params: Partial) => (target: T) => boolean; _store: T[]; constructor({ filter }: { filter: (params: Partial) => (target: T) => boolean; }); getAll(): T[]; get(params: Partial): T | undefined; set(target: T): number; remove(params: Partial): void; clear(): void; } export declare const clamp: (value: number, min: number, max: number) => number; /** * 根据 wx API `fail` 回调的错误对象判断是否为**蓝牙不可用或连接断开类型**的错误 * * - `errno` 参考小程序 [Errno 错误码文档](https://developers.weixin.qq.com/miniprogram/dev/framework/usability/PublicErrno.html) * - `errCode` 参考小程序 [蓝牙 API 文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.writeBLECharacteristicValue.html) */ export declare const isBleConnectionLostError: (error: any) => boolean; export declare const isBluetoothAdapterNotInitError: (error: any) => boolean; export declare const isBluetoothAdapterNotAvailableError: (error: any) => boolean; export declare const isBluetoothUserAuthDenyError: (error: any) => boolean; export declare const getMiniprogramEnvVersion: () => "develop" | "trial" | "release"; type WxAsyncApiFunc = (params: { success: (res: T) => void; } & P) => unknown; export declare const pifyWxApi: (api: WxAsyncApiFunc) => (params?: Omit) => Promise; export declare const foldArrayForReport: (arr: unknown[]) => unknown[]; export declare const wrapRetry: (options: { handler: () => Promise; shouldRetry: (err: unknown) => boolean; retryCount: number; retryDelay: number; }) => Promise; export declare const getDateTimeStr: (time?: number) => string; export {};