UNPKG

1.15 kBTypeScriptView Raw
1import TransportNodeHidNoEvents from "@ledgerhq/hw-transport-node-hid-noevents";
2import type { Observer, DescriptorEvent, Subscription } from "@ledgerhq/hw-transport";
3/**
4 * node-hid Transport implementation
5 * @example
6 * import TransportNodeHid from "@ledgerhq/hw-transport-node-hid";
7 * ...
8 * TransportNodeHid.create().then(transport => ...)
9 */
10export default class TransportNodeHid extends TransportNodeHidNoEvents {
11 /**
12 *
13 */
14 static isSupported: () => Promise<boolean>;
15 /**
16 *
17 */
18 static list: () => Promise<any>;
19 /**
20 *
21 */
22 static setListenDevicesDebounce: (delay: number) => void;
23 /**
24 *
25 */
26 static setListenDevicesPollingSkip: (conditionToSkip: () => boolean) => void;
27 /**
28 *
29 */
30 static setListenDevicesDebug: () => void;
31 /**
32 */
33 static listen: (observer: Observer<DescriptorEvent<string | null | undefined>>) => Subscription;
34 /**
35 * if path="" is not provided, the library will take the first device
36 */
37 static open(path: string | null | undefined): Promise<TransportNodeHid>;
38}
39//# sourceMappingURL=TransportNodeHid.d.ts.map
\No newline at end of file