declare namespace Cypress { import fs from "fs"; type CreateDirOptions = | fs.Mode | (fs.MakeDirectoryOptions & { recursive?: false | undefined; }); type DeleteDirOptions = fs.RmDirOptions; type ReadFileOptions = { encoding?: null | undefined; flag?: string | undefined; }; type ReadDirOptions = | BufferEncoding | { encoding: BufferEncoding | null; withFileTypes?: false | undefined; recursive?: boolean | undefined; }; interface Chainable { fsFileExists(path: string): Chainable; fsReadFile(path: string, options?: ReadFileOptions): Chainable; fsWriteFile( path: string, content: string, options: fs.WriteFileOptions ): Chainable; fsDeleteFile(path: string): Chainable; fsCreateDirectory( path: string, fileOptions?: CreateDirOptions ): Chainable; fsDeleteDirectory( path: string, fileOptions?: DeleteDirOptions ): Chainable; fsCopyFile({ path, newPath, mode, }: { path: string; newPath: string; mode?: number; }): Chainable; fsChmod({ path, mode }: { path: string; mode: number }): Chainable; fsAppendFile({ path, content, }: { path: string; content: string; }): Chainable; fsRename({ path, newPath, }: { path: string; newPath: string; }): Chainable; fsDirExists(path: string): Chainable; fsReadDir(path: string, options?: ReadDirOptions): Chainable; fsIsDirectory(path: string): Chainable; fsIsFile(path: string): Chainable; } }