UNPKG

497 BJavaScriptView Raw
1/* @flow */
2
3import type {TrezorDeviceInfo} from '../transport';
4
5export type LowlevelTransportPlugin = {
6 enumerate: () => Promise<Array<TrezorDeviceInfo>>;
7 send: (path: string, session: string, data: ArrayBuffer) => Promise<void>;
8 receive: (path: string, session: string) => Promise<ArrayBuffer>;
9 connect: (path: string) => Promise<string>;
10 disconnect: (path: string, session: string) => Promise<void>;
11
12 init: (debug: ?boolean) => Promise<void>;
13 version: string;
14 name: string;
15}
16