/** * Sanitize file paths in error messages for security */ export declare function sanitizeErrorPath(filePath: string): string; /** * SEC-008: Create a sanitized error from an original error, replacing paths * Enhanced to handle more path patterns and edge cases */ export declare function createSanitizedError(originalError: Error, pathPattern?: RegExp): Error; /** * SEC-008: Sanitize error message string (for use with displayError) */ export declare function sanitizeErrorMessage(message: string): string; /** * Handle file operation errors with consistent sanitization */ export declare function handleFileError(error: unknown, logger?: { error: (error: Error | unknown) => void; }): never; //# sourceMappingURL=errorUtils.d.ts.map