import { Effect } from "effect"; import { Error, FileSystem } from "@effect/platform"; import * as effect_Scope0 from "effect/Scope"; import * as effect_Layer0 from "effect/Layer"; //#region src/utils/effect-fs.d.ts declare const FS: { readonly access: (path: string, options?: FileSystem.AccessFileOptions | undefined) => Effect.Effect; readonly copy: (fromPath: string, toPath: string, options?: FileSystem.CopyOptions | undefined) => Effect.Effect; readonly copyFile: (fromPath: string, toPath: string) => Effect.Effect; readonly chmod: (path: string, mode: number) => Effect.Effect; readonly chown: (path: string, uid: number, gid: number) => Effect.Effect; readonly exists: (path: string) => Effect.Effect; readonly link: (fromPath: string, toPath: string) => Effect.Effect; readonly makeDirectory: (path: string, options?: FileSystem.MakeDirectoryOptions | undefined) => Effect.Effect; readonly makeTempDirectory: (options?: FileSystem.MakeTempDirectoryOptions | undefined) => Effect.Effect; readonly makeTempDirectoryScoped: (options?: FileSystem.MakeTempDirectoryOptions | undefined) => Effect.Effect; readonly makeTempFile: (options?: FileSystem.MakeTempFileOptions | undefined) => Effect.Effect; readonly makeTempFileScoped: (options?: FileSystem.MakeTempFileOptions | undefined) => Effect.Effect; readonly open: (path: string, options?: FileSystem.OpenFileOptions | undefined) => Effect.Effect; readonly readDirectory: (path: string, options?: FileSystem.ReadDirectoryOptions | undefined) => Effect.Effect; readonly readFile: (path: string) => Effect.Effect; readonly readFileString: (path: string, encoding?: string | undefined) => Effect.Effect; readonly readLink: (path: string) => Effect.Effect; readonly realPath: (path: string) => Effect.Effect; readonly remove: (path: string, options?: FileSystem.RemoveOptions | undefined) => Effect.Effect; readonly rename: (oldPath: string, newPath: string) => Effect.Effect; readonly stat: (path: string) => Effect.Effect; readonly symlink: (fromPath: string, toPath: string) => Effect.Effect; readonly truncate: (path: string, length?: FileSystem.SizeInput | undefined) => Effect.Effect; readonly utimes: (path: string, atime: number | Date, mtime: number | Date) => Effect.Effect; readonly writeFile: (path: string, data: Uint8Array, options?: FileSystem.WriteFileOptions | undefined) => Effect.Effect; readonly writeFileString: (path: string, data: string, options?: FileSystem.WriteFileStringOptions | undefined) => Effect.Effect; }; declare const makePath: (p: string) => Effect.Effect; declare const safeFileExists: (p: string) => Effect.Effect; declare const safeFileRemove: (p: string) => Effect.Effect; declare const makeTempPathScoped: (dirName: string) => Effect.Effect; declare const FSyncLayer: effect_Layer0.Layer; //#endregion export { FSyncLayer, FS as default, makePath, makeTempPathScoped, safeFileExists, safeFileRemove }; //# sourceMappingURL=effect-fs.d.mts.map