UNPKG

936 BTypeScriptView Raw
1import { WebUSB } from './webusb';
2import * as usb from './usb';
3/**
4 * Convenience method to get the first device with the specified VID and PID, or `undefined` if no such device is present.
5 * @param vid
6 * @param pid
7 */
8declare const findByIds: (vid: number, pid: number) => usb.Device | undefined;
9/**
10 * Convenience method to get the device with the specified serial number, or `undefined` if no such device is present.
11 * @param serialNumber
12 */
13declare const findBySerialNumber: (serialNumber: string) => Promise<usb.Device | undefined>;
14declare const webusb: WebUSB;
15export { usb, findByIds, findBySerialNumber, webusb };
16export { Device, Transfer, DeviceEvents, getDeviceList, useUsbDkBackend, LibUSBException } from './usb';
17export * from './usb/capability';
18export * from './usb/descriptors';
19export * from './usb/endpoint';
20export * from './usb/interface';
21export * from './webusb';
22export * from './webusb/webusb-device';