/// import $fs from 'fs'; import { URL } from 'url'; export declare const Constants: typeof $fs.constants; export declare type PathLike = $fs.PathLike | string; export interface Descriptor { path: string; stats: $fs.Stats; } export declare class FileSystem { private readonly fs; constructor(fs: any); append(path: string | number | Buffer | URL, data: any, throws?: boolean): Promise; basename(path: string, ext?: string | boolean): string; chmod(path: PathLike, mode: number | string): Promise; close(fd: number, throws?: boolean): Promise; delete(path: PathLike, throws?: boolean): Promise; dirname(filepath: string): string; exists(path: PathLike, throws?: boolean, mode?: number): Promise; ext(filename: string): string; file(path: string, content: string, throws?: boolean): Promise; glob(pattern: string, cwd?: string): Promise; globs(patterns: string[], cwd?: string): Promise; list(path: PathLike): Promise; info(path: PathLike): Promise; join(...paths: string[]): string; json(path: string | number | Buffer | URL): Promise; mkdir(path: PathLike, mode?: number | string, throws?: boolean): Promise; mkdirs(paths: string[], mode?: number | string, throws?: boolean): Promise; mkdirp(path: string, throws?: boolean): Promise; mkdirps(paths: string[], throws?: boolean): Promise; open(path: PathLike, flags: string | number, mode?: string | number): Promise; read(fd: number, buffer: T, offset: number, length: number, position: number): Promise; readFile(path: string | number | Buffer | URL): Promise; relative(from: string, to: string): string; relativeFrom(to: string): string; rename(original: PathLike, filename: PathLike, throws?: boolean): Promise; resolve(...paths: string[]): string; save(path: string, object: T, throws?: boolean): Promise; stat(path: PathLike): Promise; stats(...paths: PathLike[]): Promise; text(path: string | number | Buffer | URL): Promise; write(fd: number, buffer: T, offset?: number, length?: number, position?: number): Promise; writeFile(path: string | number | Buffer | URL, data: any): Promise; } export declare const fs: FileSystem; //# sourceMappingURL=FileSystem.d.ts.map