/** * @file Error Handling Utilities * @version 1.0.0 * @status STABLE - DO NOT MODIFY WITHOUT TESTS * @lastModified 2024-06-07 * * Standardized error handling system for MCP Ethers Wallet * * IMPORTANT: * - Add tests for any new error types * - Maintain consistent error codes * * Functionality: * - Custom error classes * - Error serialization * - Error codes */ export declare class EthersServerError extends Error { readonly code: string; readonly details?: Record; readonly statusCode: number; constructor(message: string, code?: string, details?: Record, statusCode?: number); serialize(): Record; } export declare class NetworkError extends EthersServerError { constructor(message: string, details?: Record); } export declare class ProviderError extends EthersServerError { constructor(message: string, details?: Record); } export declare class ContractError extends EthersServerError { constructor(message: string, details?: Record); } export declare class TransactionError extends EthersServerError { constructor(message: string, details?: Record); } export declare class WalletError extends EthersServerError { constructor(message: string, details?: Record); } export declare class ConfigurationError extends EthersServerError { constructor(message: string, details?: Record); } export declare function handleUnknownError(error: unknown): EthersServerError;