@ginden/blinkstick-v2
Version:
Improved Blickstick API for Node.js
18 lines • 845 B
TypeScript
import { MinimalDeviceInfo, UsbTransport } from './usb-transport';
import type { Device, HIDAsync } from 'node-hid';
/**
* @summary UsbTransport implementation using the 'node-hid' library with asynchronous methods.
* @category Adapters
*/
export declare class NodeHidAsyncTransport extends UsbTransport {
protected readonly device: HIDAsync;
protected deviceInfo: Device;
protected constructor(device: HIDAsync);
static create(device: HIDAsync): Promise<NodeHidAsyncTransport>;
static createWithKnownInfo(device: HIDAsync, info: Device): NodeHidAsyncTransport;
sendFeatureReport(data: Buffer): Promise<number>;
getFeatureReport(reportId: number, reportLength: number): Promise<Buffer>;
getDeviceInfo(): MinimalDeviceInfo;
close(): Promise<unknown>;
}
//# sourceMappingURL=node-hid-async-transport.d.ts.map