import { n as ResultAsync } from "./result-Dg2-rfn6.js"; //#region src/node/fs.d.ts declare namespace fs_d_exports { export { exists, list, mkdir, read, remove, write }; } /** * Check whether a path exists and is accessible. * * Wraps `fs.access` into a boolean check — never throws. * * @param path - The absolute path to check. * @returns True when the path exists and is accessible. */ declare function exists(path: string): Promise; /** * Read a file's contents as a UTF-8 string. * * @param path - The absolute file path to read. * @returns A result tuple with the file contents or an Error. */ declare function read(path: string): ResultAsync; /** * Write a UTF-8 string to a file. * * @param path - The absolute file path to write. * @param content - The string content to write. * @returns A result tuple with void on success or an Error. */ declare function write(path: string, content: string): ResultAsync; /** * List filenames in a directory. * * @param path - The absolute directory path to list. * @returns A result tuple with filenames or an Error. */ declare function list(path: string): ResultAsync; /** * Create a directory, including parent directories. * * @param path - The absolute directory path to create. * @returns A result tuple with void on success or an Error. */ declare function mkdir(path: string): ResultAsync; /** * Remove a file or directory. Silently succeeds if the path does not exist. * * @param path - The absolute path to remove. * @returns A result tuple with void on success or an Error. */ declare function remove(path: string): ResultAsync; //#endregion export { remove as a, read as i, fs_d_exports as n, write as o, list as r, exists as t }; //# sourceMappingURL=fs-iohSpuvY.d.ts.map