/** * Error Logging Utilities * * Provides functions for adding error logging to function execution. * Enables consistent error handling and logging patterns across applications. */ /** * Adds error logging to synchronous function execution * @param fn - Function to execute with error logging * @param context - Context description for error logging * @returns Function result or throws logged error */ export declare function withErrorLogging(fn: () => T, context: string): T; /** * Safely executes synchronous function, returning null on error * @param fn - Function to execute safely * @param context - Optional context for error logging * @returns Function result or null on error */ export declare function safeExecute(fn: () => T, context?: string): T | null; /** * Adds error logging to asynchronous function execution * @param fn - Async function to execute with error logging * @param context - Context description for error logging * @returns Promise that resolves with result or rejects with logged error */ export declare function withAsyncErrorLogging(fn: () => Promise, context: string): Promise; /** * Safely executes asynchronous function, returning null on error * @param fn - Async function to execute safely * @param context - Optional context for error logging * @returns Promise that resolves with result or null on error */ export declare function safeAsyncExecute(fn: () => Promise, context?: string): Promise; //# sourceMappingURL=errorLogging.d.ts.map