/** * Error Handling Module Index - Refactored for SRP * * This file now serves as a compatibility layer that re-exports * the modular error handling functionality while maintaining backward compatibility. * * The actual implementation has been split into: * - errorHandling/errorTypes.ts - Type definitions * - errorHandling/placeholderWrappers.ts - Placeholder implementations * - Existing files: errorLogging.js, fallbackHandlers.js, errorWrappers.js */ export { withErrorLogging, safeExecute, withAsyncErrorLogging, safeAsyncExecute } from './errorLogging.js'; export { withFallback, withAsyncFallback } from './fallbackHandlers.js'; export { wrapWithErrorLogging, wrapWithSafeExecute } from './errorWrappers.js'; export * from './errorTypes.js'; export * from './basicWrappers.js'; export * from './advancedWrappers.js'; import { createAsyncErrorWrapper, createSyncErrorWrapper, createRouteErrorWrapper, transformMongoError, createDatabaseErrorWrapper, createApiErrorWrapper, createFileErrorWrapper, createBatchErrorWrapper, createTimeoutErrorWrapper, createStructuredError, logError } from './placeholderWrappers.js'; export { createAsyncErrorWrapper, createSyncErrorWrapper, createRouteErrorWrapper, transformMongoError, createDatabaseErrorWrapper, createApiErrorWrapper, createFileErrorWrapper, createBatchErrorWrapper, createTimeoutErrorWrapper, createStructuredError, logError }; export declare const errorHandling: { createAsyncErrorWrapper: Promise>(fn: T, _options?: import("./errorTypes.js").AsyncErrorWrapperOptions) => T; createSyncErrorWrapper: any>(fn: T, _options?: import("./errorTypes.js").RouteErrorWrapperOptions) => T; createRouteErrorWrapper: (_options?: import("./errorTypes.js").RouteErrorWrapperOptions) => (_req: any, _res: any, next: any) => any; transformMongoError: (error: any) => import("./errorTypes.js").TransformedError; createDatabaseErrorWrapper: (_options?: import("./errorTypes.js").DatabaseErrorWrapperOptions) => (error: any) => any; createApiErrorWrapper: (_options?: import("./errorTypes.js").ApiErrorWrapperOptions) => (error: any) => any; createFileErrorWrapper: (_options?: any) => (error: any) => any; createBatchErrorWrapper: (_options?: import("./errorTypes.js").BatchErrorWrapperOptions) => (error: any) => any; createTimeoutErrorWrapper: (_options?: import("./errorTypes.js").TimeoutErrorWrapperOptions) => (error: any) => any; createStructuredError: (message: string, code?: string, context?: Record) => import("./errorTypes.js").StructuredError; logError: (error: Error | import("./errorTypes.js").StructuredError, context?: string) => void; }; //# sourceMappingURL=index.d.ts.map