export declare const delay: (timeout: any) => Promise; export declare function arrayBufferToHexStringArray(buffer: any): any; export declare function hexToArrayBuffer(hex: any): ArrayBufferLike; export declare function noop(): void; export declare function isEmpty(any: any): boolean; export declare function usePromise(): { promise: Promise; resolve: any; reject: any; }; export declare const pify: (api: any, context?: any) => (params: any, ...others: any[]) => Promise; export declare function byteArrayToStr(bytes: any): any; export declare function hexToStr(hex: any): any; export declare const tryCallHandler: (context: any, eventName: any, ...params: any[]) => void; export declare const injectEventHandler: (context: any, eventName: any) => void; export declare function str2hexStr(str: any): string; export declare const md5: (string: any) => any; export declare function fetchAllList(fetchFn: any): Promise; export interface PromiseObj { promise: Promise; resolve: (T?: any) => any; reject: (any?: any) => any; } export declare function genPromise(): PromiseObj; export declare function hex2str(hex: any): any; export declare function isIOS(): boolean; export declare function requestXHR(url: any, data?: {}, opts?: any): Promise; export declare function downLoadFile(url: any): Promise; export declare function blob2ArrayBuffer(blobData: any): Promise; interface DeviceData { [key: string]: { Value: any; LastUpdate: number; }; } /** * @example {a: {Value: 1, LastUpdate: 1665474777033}} => {a: 1} */ export declare function parseDeviceData(deviceData?: DeviceData): {}; export {};