UNPKG

@trezor/transport

Version:

Low level library facilitating protocol buffers based communication with Trezor devices

16 lines 696 B
import { SendThpMessageProps } from './send'; export declare const callThpMessage: ({ thpState, chunks, apiWrite, apiRead, signal, graceful, logger, }: SendThpMessageProps) => Promise<{ success: false; error: "Unable to open device" | "A transfer error has occurred." | "device not found" | "device disconnected during action" | "unexpected error" | "Aborted by signal" | "Aborted by timeout"; message?: string; } | import("../types").Success<{ messageType: string | number; payload: Buffer<ArrayBuffer>; header: Buffer<ArrayBufferLike>; length: number; }> | { success: false; error: any; message: string | undefined; }>; //# sourceMappingURL=call.d.ts.map