/** * Checks if a file exists at the specified path * Safely handles path resolution and filesystem access errors * * @param {string} dir - The base directory path * @param {string} currentPath - The relative file path to check * @returns {boolean} True if the file exists, false otherwise * * @example * fileExists('/project', 'src/index.js') // true if /project/src/index.js exists * fileExists('.', 'package.json') // true if ./package.json exists */ export function fileExists(dir: string, currentPath: string): boolean;