@elgato-stream-deck/webhid
Version:
An npm module for interfacing with the Elgato Stream Deck in the browser
18 lines • 828 B
TypeScript
import type { KeyIndex, StreamDeck } from '@elgato-stream-deck/core';
import { StreamDeckProxy } from '@elgato-stream-deck/core';
import type { WebHIDDevice } from './hid-device.js';
/**
* A StreamDeck instance.
* This is an extended variant of the class, to provide some more web friendly helpers, such as accepting a canvas
*/
export declare class StreamDeckWeb extends StreamDeckProxy {
private readonly hid;
constructor(device: StreamDeck, hid: WebHIDDevice);
/**
* Instruct the browser to close and forget the device. This will revoke the website's permissions to access the device.
*/
forget(): Promise<void>;
fillKeyCanvas(keyIndex: KeyIndex, canvas: HTMLCanvasElement): Promise<void>;
fillPanelCanvas(canvas: HTMLCanvasElement): Promise<void>;
}
//# sourceMappingURL=wrapper.d.ts.map