/** * File Organizer MCP Server v3.4.2 * Centralized Error Handling */ import { type ToolResponse } from "../types.js"; /** * Sanitize error message to prevent path disclosure * Improved regex to handle paths with spaces */ export declare function sanitizeErrorMessage(error: Error | string): string; /** * Create standardized error response string with Error ID */ export declare function createErrorResponse(error: unknown): ToolResponse; /** * Type guard to check if an error is a NodeJS.ErrnoException */ export declare function isErrnoException(error: unknown): error is NodeJS.ErrnoException; //# sourceMappingURL=error-handler.d.ts.map