// Type definitions for recursive-readdir v1.2.1
///
import * as fs from 'fs';
declare namespace RecursiveReaddir {
interface readdir {
(path: string, callback: (error: Error, files: string[]) => any): void;
// ignorePattern supports glob syntax via https://github.com/isaacs/minimatch
(path: string, ignorePattern: (string | ((file: string, stats: fs.Stats) => void))[], callback: (error: Error, files: string[]) => any): void;
(path: string, ignoreFunction: (file: string, stats: fs.Stats) => void, callback: (error: Error, files: string[]) => any): void;
(path: string, ignorePattern: (string | ((file: string, stats: fs.Stats) => void))): Promise>;
(path: string, ignoreFunction: (file: string, stats: fs.Stats) => void): Promise>;
}
}
declare var r: RecursiveReaddir.readdir;
export = r;