UNPKG

442 BJavaScriptView Raw
1/* @flow */
2
3"use strict";
4
5// does not have session
6export type TrezorDeviceInfo = {
7 path: string;
8}
9
10export 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