UNPKG

@trezor/transport

Version:

Low level library facilitating protocol buffers based communication with Trezor devices

14 lines 695 B
import type { ReceiveThpMessageProps } from './receive'; export type SendThpMessageProps = Omit<ReceiveThpMessageProps, 'apiChunkSize'> & { chunks: Buffer[]; }; export declare const sendThpMessage: ({ thpState, skipAck, chunks, apiWrite, apiRead, signal, logger, }: SendThpMessageProps) => Promise<import("../types").Success<undefined> | { 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; } | { success: false; error: any; message: string | undefined; }>; //# sourceMappingURL=send.d.ts.map