declare module 'find-nearest-file' { /** * Finds the nearest file with the given name, starting from the current directory * and traversing up the directory tree. * @param filename - The name of the file to find * @param directory - Optional starting directory (defaults to current working directory) * @returns The full path to the file, or null if not found */ function findNearestFile(filename: string, directory?: string): string | null; export = findNearestFile; }