/** * Error Handling Type Definitions */ export type AsyncErrorWrapperOptions = { timeout?: number; context?: string; }; export type RouteErrorWrapperOptions = { context?: string; }; export type DatabaseErrorWrapperOptions = { context?: string; }; export type ApiErrorWrapperOptions = { context?: string; }; export type BatchErrorWrapperOptions = { context?: string; }; export type TimeoutErrorWrapperOptions = { timeout?: number; context?: string; }; export interface TransformedError extends Error { originalError?: Error; transformedAt?: Date; } export interface BatchResult { successes: T[]; failures: Array<{ error: Error; item: any; }>; } export interface BatchProcessingResult { results: T[]; errors: Error[]; processedCount: number; } export interface StructuredError extends Error { code?: string; context?: Record; timestamp?: Date; } //# sourceMappingURL=errorTypes.d.ts.map