UNPKG

@ginden/blinkstick-v2

Version:
18 lines 845 B
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