import { ErrorCode } from "./hardware-errors-enums.mjs"; /** * Recursively checks whether an error value represents a user rejection or * cancellation, mirroring detection used in MetaMask core signing flows. * * @param error - The error value to inspect. * @param visited - Set of already-visited objects to avoid infinite recursion. * @returns True when the error looks like a user rejection or cancellation. */ export declare function isUserRejectionLikeError(error: unknown, visited?: Set): boolean; /** * Resolves a hardware-wallet error code for user rejection-like errors. * * @param error - The error value to inspect. * @returns `UserRejected` or `UserCancelled` when detected, otherwise `undefined`. */ export declare function resolveUserRejectionErrorCode(error: unknown): ErrorCode.UserCancelled | ErrorCode.UserRejected | undefined; //# sourceMappingURL=user-rejection.d.mts.map