export interface U2FError extends Error { originalError: { metaData: { code: number; }; }; } export interface ErrorWithId { id: string; message: string; name: string; stack: string; } export declare type LedgerError = U2FError | ErrorWithId | Error; export declare enum WalletsErrorCode { UNKNOWN = 0, TIMEOUT = 1, CANCELLED = 2, MISSING_ARGUMENTS = 3, HW_WRONG_APP = 4, HW_U2F_NOT_SUPPORTED = 5, HW_IFRAME_BLOCKED = 6, HW_POPUP_BLOCKED = 7 } export declare class WalletsError extends Error { errorCode: WalletsErrorCode; originalError?: Error; constructor(message: string, errorCode: WalletsErrorCode, originalError?: Error); }