import type { Resource } from "webappwiz/disposable"; import type { Fs, MkdirOptions, RmOptions, StatResult, WatchOptions } from "./fs.js"; declare const DIRECTORY: unique symbol; /** An in-memory {@link Fs} for tests. */ export declare class FakeFs implements Fs { readonly store: Map>; /** Each symbolic link, to the path it points at, as `symlink` was given it. */ private readonly links; /** When each path was last written, as epoch ms, for `stat`. */ private readonly modified; private readonly modes; private readonly watches; exists(path: string): Promise; /** * Makes `path` a symbolic link to `target`, which is taken from `path`'s * directory when relative, as a real one is. Reading through it reads the * target. */ symlink(target: string, path: string): Promise; isSymlink(path: string): Promise; mkdir(path: string, opts?: MkdirOptions): Promise; read(path: string): Promise; write(path: string, data: string): Promise; append(path: string, data: string): Promise; readBytes(path: string): Promise; writeBytes(path: string, data: Uint8Array): Promise; chmod(path: string, mode: number): Promise; rename(from: string, to: string): Promise; readdir(path: string): Promise; stat(path: string): Promise; rm(path: string, opts?: RmOptions): Promise; watch(path: string, onChange: (changed: string) => void, opts?: WatchOptions): Resource; /** Tells each watch whose reach `path` is in, as a real one would. */ private changed; /** `path` with every link along it swapped for where it points. */ private follow; private file; } export {};