///
import fs from 'fs';
interface Result {
files: Array;
directories: Array;
}
interface FileSystem {
join(pathA: string, pathB: string): string;
basename(path: string): string;
stat(path: string): Promise;
readdir(path: string): Promise;
}
declare type Validate = (path: string) => boolean;
export declare const defaultFilesystem: FileSystem;
declare function scanDirectory(path: string, { recursive, validate, concurrency, fileSystem, }?: {
recursive?: boolean;
validate?: Validate | null;
concurrency?: number;
fileSystem?: Partial;
}): Promise;
export default scanDirectory;