@ginden/blinkstick-v2
Version:
Improved Blickstick API for Node.js
14 lines • 719 B
TypeScript
import { MinimalDeviceInfo, UsbTransport } from './usb-transport';
import type { Device, HIDAsync } from 'node-hid';
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