declare class IO { /********************************************************************************* // File Operations *********************************************************************************/ readJson: (path: string, defaultValue?: any) => Promise; writeJson: (path: string, json: object) => Promise; readFile: (path: string, defaultValue?: any) => Promise; writeFile: (path: string, data: any) => Promise; removeFile: (path: any) => Promise; oneJson: (dirPath: any, { desire }?: { desire?: string; }) => Promise; oneFile: (dirPath: any, { desire }?: { desire?: string; }) => Promise; readFileWithVirtuals: (rootPath: any, path: any) => Promise; readDir: (path: any, { absPaths, sort }?: { absPaths?: boolean; sort?: string; }) => Promise; writeBackupFile: (path: any, data: any, maxFiles?: number) => Promise<{ removed: any[]; numFilesFound: any; }>; pruneFiles: (dirPath: any, maxFiles?: number) => Promise<{ removed: any[]; numFilesFound: any; }>; isFile: (path: any) => Promise; isDir: (path: any) => Promise; getModifiedInstant: (path: any) => Promise; getModifiedTs: (path: any, outputFormat?: string) => Promise; getCreatedInstant: (path: any) => Promise; getReadableFileSize: (path: any) => Promise; getStat: (path: any) => Promise; expandPath: (path: any) => any[]; toFileName: (path: any) => any; /********************************************************************************* ** CMD Operations *********************************************************************************/ getDiskUsage: () => Promise<{ size: string; used: string; available: string; percentUsed: string; }>; execCmds: (cmds: any, cwd: any, out: any) => Promise<{ code: any; outputLines: any[]; message: string; }>; execCmd: (cmd: string, cwd?: string, out?: (data: string) => any) => Promise<{ code: number; outputLines: string[]; message: string; }>; } declare const instance: IO; export default instance;