/// /// export type TransformFunc = (contents: T) => T; export type FileContents = string | NodeJS.ArrayBufferView; export interface IFileManager { getRootDirAsync: () => Promise; getRootDir: () => string; readFile: (path: string, filename: string) => Buffer; findFiles(path: string, matchFunc?: (str: string) => boolean): string[]; writeFile: (extension: string, transform?: TransformFunc) => (contents: any, filePath: string, fileName: string) => T; }