@metamask/eth-ledger-bridge-keyring
Version:
A MetaMask compatible keyring, for ledger hardware wallets
11 lines • 548 B
text/typescript
/**
* Central error handler for Ledger TransportStatusError instances.
* Converts Ledger transport errors into properly typed HardwareWalletError instances
* using the error mapping system.
*
* @param error - The error to handle
* @param fallbackMessage - Default error message if no specific handling is found
* @throws HardwareWalletError with appropriate error details from mappings
*/
export declare function handleLedgerTransportError(error: unknown, fallbackMessage: string): never;
//# sourceMappingURL=ledger-error-handler.d.mts.map