/** 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; export declare const fastJoin: (from: string, append: string) => string; export declare const maybeRealpath: (target: string) => Promise; export type PackageJson = Record & { name?: string; version?: string; }; export declare const loadPackageJson: import("./memoize").MemoizableAsyncFn;