UNPKG

@logitech-mx-creative-console/webhid

Version:

An npm module for interfacing with the Logitech MX Creative Console in the browser

18 lines 835 B
import type { HIDDevice as CoreHIDDevice, HIDDeviceEvents, HIDDeviceInfo } from '@logitech-mx-creative-console/core'; import { EventEmitter } from 'eventemitter3'; /** * The wrapped browser HIDDevice. * This translates it into the common format expected by @logitech-mx-creative-console/core */ export declare class WebHIDDevice extends EventEmitter<HIDDeviceEvents> implements CoreHIDDevice { private readonly device; private readonly reportQueue; constructor(device: HIDDevice); close(): Promise<void>; forget(): Promise<void>; sendFeatureReport(data: Uint8Array): Promise<void>; getFeatureReport(reportId: number, _reportLength: number): Promise<Uint8Array>; sendReports(buffers: Uint8Array[]): Promise<void>; getDeviceInfo(): Promise<HIDDeviceInfo>; } //# sourceMappingURL=hid-device.d.ts.map