UNPKG

@metamask/eth-ledger-bridge-keyring

Version:
12 lines 670 B
import { DeviceExchangeError } from "@ledgerhq/device-management-kit"; import { TransportStatusError } from "@ledgerhq/hw-transport"; /** * Translates a DMK error (DeviceExchangeError with hex error codes) into a * TransportStatusError that the Ledger keyring error handler can process. * * @param error - The error from a DMK device action or command. * @returns A TransportStatusError with the corresponding APDU status code. */ export declare function translateDmkError(error: unknown): TransportStatusError; export declare function isDeviceExchangeError(error: unknown): error is DeviceExchangeError<string>; //# sourceMappingURL=dmk-error-translator.d.cts.map