/** * Recursively create `dir` (if needed) and verify it is writable. * Fails with a clear, actionable message instead of surfacing an opaque EACCES. */ export declare function ensureWritableDir(dir: string): void; /** * Move a directory, falling back to copy+delete on cross-device rename (EXDEV). * * On Linux, `renameSync()` fails with EXDEV when src and dest are on different * filesystems (e.g. `/tmp` tmpfs vs `~/.local/share`). This helper attempts the * fast same-device rename first, then falls back to recursive copy + delete. */ export declare function moveDir(src: string, dest: string): void; //# sourceMappingURL=fs-utils.d.ts.map