/** * Error type definitions for improved type safety */ export interface NodeJSError extends Error { code?: string; errno?: number; path?: string; syscall?: string; } /** * File system error with additional properties */ export interface FileSystemError extends NodeJSError { code: 'EACCES' | 'EISDIR' | 'ENOENT' | 'ENOTDIR' | 'EPERM' | string; path?: string; } /** * Validation error with additional context */ export interface ValidationError extends Error { constraint?: string; field?: string; value?: unknown; } /** * Configuration error with additional context */ export interface ConfigurationError extends Error { configPath?: string; property?: string; } /** * Network error with additional context */ export interface NetworkError extends Error { statusCode?: number; timeout?: boolean; url?: string; } /** * Type guard for Node.js errors */ export declare function isNodeJSError(error: unknown): error is NodeJSError; /** * Type guard for file system errors */ export declare function isFileSystemError(error: unknown): error is FileSystemError; //# sourceMappingURL=error.types.d.ts.map