import HF2 = pxt.HF2; export declare function isInstalled(install?: boolean): boolean; export interface HidDevice { vendorId: number; productId: number; path: string; serialNumber: string; manufacturer: string; product: string; release: number; } export declare function listAsync(): Promise; export declare function serialAsync(): Promise; export declare function dmesgAsync(): Promise; export declare function deviceInfo(h: HidDevice): string; export declare function getHF2DevicesAsync(): Promise; export declare function hf2ConnectAsync(path: string, raw?: boolean): Promise; export declare function mkWebUSBOrHidPacketIOAsync(): Promise; export declare function initAsync(path?: string): Promise; export declare function connectSerial(w: HF2.Wrapper): void; export declare class HIDError extends Error { constructor(m: string); } export declare class HidIO implements pxt.packetio.PacketIO { private requestedPath; dev: any; private path; private connecting; onDeviceConnectionChanged: (connect: boolean) => void; onConnectionChanged: () => void; onData: (v: Uint8Array) => void; onEvent: (v: Uint8Array) => void; onError: (e: Error) => void; constructor(requestedPath: string); private setConnecting; private connect; disposeAsync(): Promise; isConnecting(): boolean; isConnected(): boolean; sendPacketAsync(pkt: Uint8Array): Promise; error(msg: string): any; disconnectAsync(): Promise; reconnectAsync(): Promise; }