/** * Error handling utilities for consistent error management */ import { ShakapackerError } from "./errorCodes"; /** * Checks if an error is a file not found error (ENOENT) */ export declare function isFileNotFoundError(error: unknown): boolean; /** * Checks if an error is a module not found error */ export declare function isModuleNotFoundError(error: unknown): boolean; /** * Creates a consistent error message for file operations */ export declare function createFileOperationError(operation: "read" | "write" | "delete", filePath: string, details?: string): ShakapackerError; /** * Creates a consistent error message for file operations (backward compatibility) */ export declare function createFileOperationErrorLegacy(operation: "read" | "write" | "delete", filePath: string, details?: string): Error; /** * Safely gets error message from unknown error type */ export declare function getErrorMessage(error: unknown): string; /** * Type guard for NodeJS errors with errno */ export declare function isNodeError(error: unknown): error is NodeJS.ErrnoException; /** * Creates a configuration validation error */ export declare function createConfigValidationErrorWithCode(configPath: string, environment: string, reason: string): ShakapackerError; /** * Creates a module not found error */ export declare function createModuleNotFoundError(moduleName: string, details?: string): ShakapackerError; /** * Creates a path traversal security error */ export declare function createPathTraversalError(path: string): ShakapackerError; /** * Creates a port validation error */ export declare function createPortValidationError(port: unknown): ShakapackerError; //# sourceMappingURL=errorHelpers.d.ts.map