import fs from 'fs'; export type FsError = Error & { code?: string; path?: string; }; export { chmodSync, mkdirSync, readdirSync, renameSync, rmdirSync, rmSync, statSync, unlinkSync, } from 'fs'; export declare const promises: { chmod: (path: fs.PathLike, mode: fs.Mode) => Promise; mkdir: (path: fs.PathLike, options?: fs.Mode | (fs.MakeDirectoryOptions & { recursive?: boolean | null; }) | undefined | null) => Promise; readdir: (path: fs.PathLike) => Promise; rename: (oldPath: fs.PathLike, newPath: fs.PathLike) => Promise; rm: (path: fs.PathLike, options: fs.RmOptions) => Promise; rmdir: (path: fs.PathLike) => Promise; stat: (path: fs.PathLike) => Promise; unlink: (path: fs.PathLike) => Promise; };