declare module shell { interface ShellEntry { name : string; path : string; size : number; modificationTime : Date; isFile : boolean; isDirectory : boolean; nativeEntry : any; } /** * List information about the FILEs * @param path */ const ls: (path: string) => Promise; /** * Create a directory * @param path */ const mkdir: (path: string) => Promise; /** * Remove a file or a directory * @param path */ const remove: (path: string) => Promise; /** * Copy a source to a dest * @param source * @param dest */ const copy: (source: string, dest: string) => Promise; /** * Download a remote file to a local folder * @param url * @param dest */ const download: (url: string, dest: string, progressCallback? : (progress: any) => void) => Promise; /** * Check if a file or a directory exists * @param url */ const exists: (url: string) => Promise; /** * Read a file and return content as text. * @param url */ const readText: (url: string) => Promise; /** * Read a file and return content as object. * @param url */ const readJSON: (url: string) => Promise; /** * Write text to a file. * @param text * @param url */ const writeText: (text: string, url: string) => Promise; /** * Write object to a file. * @param obj * @param url */ const writeJSON: (data: any, url: string) => Promise; /** * Get all files and folder * @returns an Array of string */ const fileTree: (path : string) => Promise>; /** * Show details in console.log * param value (default : false) */ const consoleLog: (value: boolean) => void; }