1 | import TransportNodeHidNoEvents from "@ledgerhq/hw-transport-node-hid-noevents";
|
2 | import type { Observer, DescriptorEvent, Subscription } from "@ledgerhq/hw-transport";
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export 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 |
|
36 |
|
37 | static open(path: string | null | undefined): Promise<TransportNodeHid>;
|
38 | }
|
39 |
|
\ | No newline at end of file |