//#region src/node/fs.d.ts /** Try to use `~` for HOME folder if possible */ declare function toHumanReadableFilePath(path: string): string; /** * Tests whether a value is a valid file path. Attention! Also folders are valid file paths. * @deprecated */ declare function exists(path: string): Promise; declare function isFile(path: string): Promise; declare function isFolder(path: string): Promise; declare function isHiddenPath(path: string): boolean; /** Create missing folders e.g. `/a/b/c` will create folders `/a/b/c` */ declare function ensureFolder(...parts: string[]): Promise; /** Create missing folder to file location e.g. `/a/b/c/s.txt` will create folders `/a/b/c` */ declare function ensureFolderForFile(...parts: string[]): Promise; declare function removeFolder(...parts: string[]): Promise; declare function readText(...parts: string[]): Promise; declare function readJson(...parts: string[]): Promise; declare function readBin(...parts: string[]): Promise; /** @deprecated use readJson or readBin */ declare function readData(...parts: string[]): Promise; declare function writeText(path: string, content: string, createFolders?: boolean): Promise; /** @deprecated use writeBin or writeJson */ declare function writeData(path: string, content: object | Uint8Array, createFolders?: boolean): Promise; declare function writeBin(path: string, content: Uint8Array, info?: { createFolders?: boolean; }): Promise; declare function writeJson(path: string, content: T, info?: { createFolders?: boolean; pretty?: boolean; }): Promise; //#endregion export { isFolder as a, readData as c, removeFolder as d, toHumanReadableFilePath as f, writeText as g, writeJson as h, isFile as i, readJson as l, writeData as m, ensureFolderForFile as n, isHiddenPath as o, writeBin as p, exists as r, readBin as s, ensureFolder as t, readText as u }; //# sourceMappingURL=fs-D837bjRT.d.cts.map