import * as fs from 'fs'; export class Defiler { paths: Set; files: Map; constructor(...args: any[]); exec(): Promise; get(path: string): Promise; get(paths: string[]): Promise; get(filter: Filter): Promise; add(file: FileData): void; resolve(path: string): string; } export class File { stats: fs.Stats; path: string; dir: string; filename: string; ext: string; enc: string; bytes: Buffer; text: string; } interface Filter { (path: string): boolean; } interface FileData { path: string; [propName: string]: any; }