@trezor/transport
Version:
Low level library facilitating protocol buffers based communication with Trezor devices
5 lines • 445 B
TypeScript
import type { ThpChannelState, 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?: ThpChannelState): string;
//# sourceMappingURL=bridgeProtocolMessage.d.ts.map