// Type definitions for fs-extra-promise // Project: https://github.com/overlookmotel/fs-extra-promise // Definitions by: midknight41 , Jason Swearingen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// /// import * as stream from 'stream'; import { Stats } from 'fs'; import * as Promise from 'bluebird'; import { CopyFilter, CopyOptions, ReadOptions, WriteOptions, MkdirOptions, MoveOptions } from 'fs-extra'; export * from 'fs-extra'; //promisified versions export declare function copyAsync(src: string, dest: string): Promise; export declare function copyAsync(src: string, dest: string, filter: CopyFilter): Promise; export declare function copyAsync(src: string, dest: string, options: CopyOptions): Promise; export declare function createFileAsync(file: string): Promise; export declare function mkdirsAsync(dir: string, options?: MkdirOptions): Promise; export declare function mkdirpAsync(dir: string, options?: MkdirOptions): Promise; export declare function moveAsync(src: string, dest: string, options?: MoveOptions): Promise; export declare function outputFileAsync(file: string, data: any): Promise; export declare function outputJsonAsync(file: string, data: any): Promise; export declare function outputJSONAsync(file: string, data: any): Promise; export declare function readJsonAsync(file: string): Promise; export declare function readJsonAsync(file: string, options?: ReadOptions): Promise; export declare function readJSONAsync(file: string): Promise; export declare function readJSONAsync(file: string, options?: ReadOptions): Promise; export declare function removeAsync(dir: string): Promise; export declare function writeJsonAsync(file: string, object: any): Promise; export declare function writeJsonAsync(file: string, object: any, options?: WriteOptions): Promise; export declare function writeJSONAsync(file: string, object: any): Promise; export declare function writeJSONAsync(file: string, object: any, options?: WriteOptions): Promise; export declare function renameAsync(oldPath: string, newPath: string): Promise; export declare function truncateAsync(fd: number, len: number): Promise; export declare function chownAsync(path: string, uid: number, gid: number): Promise; export declare function fchownAsync(fd: number, uid: number, gid: number): Promise; export declare function lchownAsync(path: string, uid: number, gid: number): Promise; export declare function chmodAsync(path: string, mode: number): Promise; export declare function chmodAsync(path: string, mode: string): Promise; export declare function fchmodAsync(fd: number, mode: number): Promise; export declare function fchmodAsync(fd: number, mode: string): Promise; export declare function lchmodAsync(path: string, mode: string): Promise; export declare function lchmodAsync(path: string, mode: number): Promise; export declare function statAsync(path: string): Promise; export declare function lstatAsync(path: string): Promise; export declare function fstatAsync(fd: number): Promise; export declare function linkAsync(srcpath: string, dstpath: string): Promise; export declare function symlinkAsync(srcpath: string, dstpath: string, type?: string): Promise; export declare function readlinkAsync(path: string): Promise; export declare function realpathAsync(path: string): Promise; export declare function realpathAsync(path: string, cache: { [path: string]: string }): Promise; export declare function unlinkAsync(path: string): Promise; export declare function rmdirAsync(path: string): Promise; export declare function mkdirAsync(path: string, mode?: number): Promise; export declare function mkdirAsync(path: string, mode?: string): Promise; export declare function readdirAsync(path: string): Promise; export declare function closeAsync(fd: number): Promise; export declare function openAsync(path: string, flags: string, mode?: string): Promise; export declare function utimesAsync(path: string, atime: number, mtime: number): Promise; export declare function futimesAsync(fd: number, atime: number, mtime: number): Promise; export declare function fsyncAsync(fd: number): Promise; export declare function writeAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>; export declare function readAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>; export declare function readFileAsync(filename: string, encoding: string): Promise; export declare function readFileAsync(filename: string, options: ReadOptions): Promise; export declare function readFileAsync(filename: string): Promise; export declare function writeFileAsync(filename: string, data: any, encoding?: string): Promise; export declare function writeFileAsync(filename: string, data: any, options?: WriteOptions): Promise; export declare function appendFileAsync(filename: string, data: any, encoding?: string): Promise; export declare function appendFileAsync(filename: string, data: any, option?: WriteOptions): Promise; export declare function existsAsync(path: string): Promise; export declare function ensureDirAsync(path: string): Promise;