/** * @typedef {ReturnType} SafeFao */ export class ReadFileError extends Error { /** * @param {Error} cause */ constructor(cause: Error); /** * @type {'ReadFileError'} */ _tag: "ReadFileError"; /** * @type {'ReadFileError'} * @override */ override name: "ReadFileError"; } export class ExistsError extends Error { /** * @param {Error} cause */ constructor(cause: Error); /** * @type {'ExistsError'} */ _tag: "ExistsError"; /** * @type {'ExistsError'} * @override */ override name: "ExistsError"; } export function safeFao(fao: import("../types.js").FileAccessObject): { /** * @param {string} path * @param {BufferEncoding} encoding */ readFile: (path: string, encoding: BufferEncoding) => import("effect/Effect").Effect; /** * @param {string} path * @param {BufferEncoding} encoding */ readFileSync: (path: string, encoding: BufferEncoding) => import("effect/Effect").Effect; /** * @param {string} path */ exists: (path: string) => import("effect/Effect").Effect; /** * @param {string} path */ existsSync: (path: string) => import("effect/Effect").Effect; }; export type SafeFao = ReturnType; //# sourceMappingURL=safeFao.d.ts.map