/** * Filesystem Initialization * * Sets up the default filesystem structure for the bash environment * including /dev, /proc, and common directories. */ import type { IFileSystem } from "./interface.js"; /** * Virtual process info for /proc filesystem initialization. */ interface VirtualProcessInfo { pid: number; ppid: number; uid: number; gid: number; } /** * Initialize the filesystem with standard directories and files * Works with both InMemoryFs and OverlayFs (both write to memory) * * @param isRealFilesystemBacked - true when the Bash instance's base * filesystem is a real host filesystem (e.g. ReadWriteFs), which already * has its own real /bin, /tmp etc. and must never have virtual /dev, /proc * scaffolding written into it as literal files on disk. `fs` is always a * MountableFs wrapper (see Bash.ts) that structurally satisfies * isSyncInitFs() regardless of what's mounted underneath, so this can't be * detected by duck-typing `fs` itself — the caller must tell us. */ export declare function initFilesystem(fs: IFileSystem, useDefaultLayout: boolean, processInfo?: VirtualProcessInfo, isRealFilesystemBacked?: boolean): void; export {};