/** * Options for configuring the error handler behavior. */ interface ErrorHandlerOptions { /** Additional context to be included in the error log. */ context?: Record; /** If true, the error will be treated as fatal and the process will exit. */ fatal?: boolean; /** If true, the error will be logged to a file. */ logToFile?: boolean; } /** * Handles errors by formatting them and optionally logging to console and file. * @param error - The error to be handled. * @param options - Configuration options for error handling. * @returns void */ export default function catchError(error: unknown, options?: ErrorHandlerOptions): void; export {};