/** * Base error class for all CDF errors. * Provides component identification, error codes, and structured metadata. * * This class serves as the foundation for all CDF-specific errors, allowing * applications to programmatically identify error sources and handle them appropriately. */ export declare abstract class ESPCDFError extends Error { readonly component: string; readonly errorCode: string; readonly context?: Record; readonly timestamp: Date; readonly originalError?: Error; constructor(message: string, component: string, errorCode: string, context?: Record, originalError?: Error); /** * Returns a structured error object for serialization. * Useful for logging, monitoring, and error reporting. * @returns A serializable representation of the error */ toJSON(): { name: string; message: string; component: string; errorCode: string; context: Record | undefined; timestamp: string; stack: string | undefined; originalError: string | undefined; }; }