import type { RuntimeVFS } from '../../vfs.ts'; export interface FSLike { mkdirTree(path: string): void; writeFile(path: string, bytes: Uint8Array): void; /** Note a character device without materializing its content. */ charDevice?(path: string, mode: number, rdev: number): void; /** * Note a listed file whose content could not be fetched. A target that * does not implement this simply omits the file, which is only safe * when nothing will write to it. */ markUnreadable?(path: string): void; /** * Note a namespace symlink and its target. A target that cannot hold * links omits them, which is what every seed did before links were * reachable at all. */ symlink?(path: string, target: string): void; /** * The mount's permission bits for a path already written. Spelled the * way Emscripten's own FS spells it, so a target that is a real FS * satisfies it as it stands; a target with no notion of a mode omits * it and its files keep the tree's default. */ chmod?(path: string, mode: number): void; /** The mount's stamps, in milliseconds, as Emscripten's FS takes them. */ utime?(path: string, atimeMs: number, mtimeMs: number): void; } /** * Copy one mount prefix into a synchronous target. * * Args: * fs: the tree collector to fill. * vfs: the runtime's mount vocabulary to read through. * prefix: the mount prefix to walk. */ export declare function preloadInto(fs: FSLike, vfs: RuntimeVFS, prefix: string): Promise; //# sourceMappingURL=preload.d.ts.map