declare module 'fs' { export function mkdirAsync(path: string, mode?: number|string): Promise; export function readdirAsync(path: string): Promise; export function readFileAsync(filename: string, encoding: string): Promise; export function readFileAsync(filename: string, options: { encoding: string; flag?: string; }): Promise; export function readFileAsync(filename: string, options?: { flag?: string; }): Promise; export function statAsync(path: string): Promise; export function writeFileAsync(filename: string, data: any, options?: {encoding?: string; mode?: number|string; flag?: string;}): Promise; }