UNPKG

@trezor/transport

Version:

Low level library facilitating protocol buffers based communication with Trezor devices

5 lines 451 B
import type { ThpStateSerialized, TransportProtocol } from '@trezor/protocol'; import type { BridgeProtocolMessage } from '../types'; export declare function validateProtocolMessage(body: unknown, withData?: boolean): BridgeProtocolMessage; export declare function createProtocolMessage(body: unknown, protocol?: TransportProtocol | TransportProtocol['name'], thpState?: ThpStateSerialized): string; //# sourceMappingURL=bridgeProtocolMessage.d.ts.map