export type FileInFolder = { filename: string; path: string; }; type FileCallback = (file: FileInFolder) => void; export declare class FSHelpers { static exists(path: string): Promise; static rmDir(folder: string): Promise; /** * Unlinks a file, but does not throw if unlinking fails. * Supports passing an undefined value to reduce caller boilerplate * when called with optional arguments. * @param path */ static safeUnlinkFile(path: string): Promise; /** * Recursively parse all sub-folders in a given folder, calling the given callback for any files * @param rootPath Folder to parse * @param callback Callback to call for each file */ static readAllFiles(rootPath: string, callback: FileCallback): void; } export {};