UNPKG

480 BTypeScriptView Raw
1import type { Device } from './bindings';
2import { CapabilityDescriptor } from './descriptors';
3export declare class Capability {
4 protected device: Device;
5 protected id: number;
6 /** Object with fields from the capability descriptor -- see libusb documentation or USB spec. */
7 descriptor: CapabilityDescriptor;
8 /** Integer capability type. */
9 type: number;
10 /** Buffer capability data. */
11 data: Buffer;
12 constructor(device: Device, id: number);
13}