UNPKG

707 BTypeScriptView Raw
1/// <reference types="node" />
2import * as FS from 'fs-extra';
3export declare function exists(f: string): Promise<boolean>;
4export declare function stat(file: string): Promise<FS.Stats>;
5export declare function rename(from: string, to: string): Promise<void>;
6export declare function remove(file: string): Promise<void>;
7export declare function ls(dir: string): Promise<{
8 path: string;
9 stat: FS.Stats;
10}[]>;
11export declare function removeEmptyDirs(dir: string): Promise<void>;
12export declare function readJSON(file: string): Promise<any>;
13export declare function outputJSON(file: string, data: any, options?: FS.WriteOptions): Promise<void>;
14export declare function realpathSync(p: string): string;