import type { FSLike } from './preload.ts'; /** * A mount's tree, collected in memory so it can be served synchronously. * * `preloadInto` walks the bridge and writes through this interface; the * result seeds a `NodeTree` once its filesystem has mounted. The split * exists because fetching is async and every filesystem callback is not. */ export declare class MirageFsSeed implements FSLike { readonly dirs: string[]; readonly files: Map>; readonly devices: Map; readonly unreadable: Set; readonly links: Map; readonly modes: Map; readonly stamps: Map; mkdirTree(path: string): void; writeFile(path: string, bytes: Uint8Array): void; charDevice(path: string, mode: number, rdev: number): void; /** * Note a namespace symlink and what it points at. * * Args: * path: guest-absolute path of the link. * target: the stored target, verbatim as it was typed. */ symlink(path: string, target: string): void; /** * Note the mount's permission bits for a path. * * Recorded rather than applied: the node it belongs to does not exist * until `NodeTree.seed` places it. * * Args: * path: guest-absolute path. * mode: the mount's mode, type bits included. */ chmod(path: string, mode: number): void; /** * Note the mount's stamps for a path, in milliseconds. * * Args: * path: guest-absolute path. * atimeMs: access stamp. * mtimeMs: modification stamp. */ utime(path: string, atimeMs: number, mtimeMs: number): void; /** * Note a file the mount listed but would not hand over. * * Leaving it out of the tree entirely would be unsafe: the guest would * see no file, and `open(path, 'a')` would build its buffer from empty * and replace content this run never read. A node that refuses to open * says the same thing without risking the file. * * Args: * path: guest-absolute path that could not be fetched. */ markUnreadable(path: string): void; } //# sourceMappingURL=seed.d.ts.map