export declare function memoize Promise>(fn: Fn): (input: string, ...args: any[]) => Promise; /** List filtered top-level files in `targetPath` (returns absolute paths) */ export declare function listFilesSorted(targetPath: string, filter: (basename: string) => boolean): Promise; /** List nested files in top-level directories in `targetPath` (returns relative paths) */ export declare function listFilesInDirectories(targetPath: string, filter: (basename: string) => boolean): Promise; /** Iterate folders recursively for files, optionally sorting results and filtering directories */ export declare function scanFilesRecursively(parentPath: string, includeDirectory?: (parentPath: string, name: string) => boolean, sort?: boolean): AsyncGenerator<{ readonly path: string; readonly parentPath: string; readonly name: string; }, void, unknown>; export declare const fileExistsAsync: (file: string) => Promise;