declare function findNearestFile(fileName: string, directoryPath?: string): Promise<{ path: string; data: T; }>; export { findNearestFile };