import * as usb from '../usb'; /** * Wrapper to make a node-usb device look like a webusb device */ export declare class WebUSBDevice implements USBDevice { private device; static createInstance(device: usb.Device): Promise; readonly usbVersionMajor: number; readonly usbVersionMinor: number; readonly usbVersionSubminor: number; readonly deviceClass: number; readonly deviceSubclass: number; readonly deviceProtocol: number; readonly vendorId: number; readonly productId: number; readonly deviceVersionMajor: number; readonly deviceVersionMinor: number; readonly deviceVersionSubminor: number; manufacturerName?: string | undefined; productName?: string | undefined; serialNumber?: string | undefined; configurations: USBConfiguration[]; private controlTransferAsync; private setConfigurationAsync; private resetAsync; private getStringDescriptorAsync; private constructor(); get configuration(): USBConfiguration | undefined; get opened(): boolean; open(): Promise; close(): Promise; selectConfiguration(configurationValue: number): Promise; claimInterface(interfaceNumber: number): Promise; releaseInterface(interfaceNumber: number): Promise; selectAlternateInterface(interfaceNumber: number, alternateSetting: number): Promise; controlTransferIn(setup: USBControlTransferParameters, length: number): Promise; controlTransferOut(setup: USBControlTransferParameters, data?: ArrayBuffer): Promise; clearHalt(direction: USBDirection, endpointNumber: number): Promise; transferIn(endpointNumber: number, length: number): Promise; transferOut(endpointNumber: number, data: ArrayBuffer): Promise; reset(): Promise; isochronousTransferIn(_endpointNumber: number, _packetLengths: number[]): Promise; isochronousTransferOut(_endpointNumber: number, _data: BufferSource, _packetLengths: number[]): Promise; forget(): Promise; private initialize; private decodeVersion; private getStringDescriptor; private getConfigurations; private getEndpoint; private controlTransferParamsToType; private _releaseInterface; private checkDeviceOpen; }