1 | /* @flow */
|
2 |
|
3 | ;
|
4 |
|
5 | // does not have session
|
6 | export type TrezorDeviceInfo = {
|
7 | path: string;
|
8 | }
|
9 |
|
10 | export type Transport = {
|
11 | enumerate: () => Promise<Array<TrezorDeviceInfo>>;
|
12 | send: (path: string, session: string, data: ArrayBuffer) => Promise<void>;
|
13 | receive: (path: string, session: string) => Promise<ArrayBuffer>;
|
14 | connect: (path: string) => Promise<string>;
|
15 | disconnect: (path: string, session: string) => Promise<void>;
|
16 | }
|
17 |
|