Initial file contents keyed by absolute path.
Deletes the file at filePath.
When the path falls inside an active watch scope, the watcher
callback is invoked automatically with 'remove'.
Returns an async iterator that yields paths matching pattern.
A glob pattern (e.g. '**/*.prompt.ts').
See GlobOptions.
Dynamically imports the module at filePath and returns its namespace
object. Rejects if the file does not exist.
Reads the file at filePath and returns its content as a UTF-8 string.
Rejects if the file does not exist.
Starts watching for changes to files that match patterns and calls
callback on each relevant event.
Glob patterns that select which files to watch.
See FileWatchOptions.
Called for each matching file event.
A cleanup function; call it to stop watching.
Writes content to filePath, creating or overwriting the file.
When the path falls inside an active watch scope, the watcher
callback is invoked automatically.
An in-memory FileProvider backed by a
Map<string, string>.Intended for unit tests and non-local environments (e.g. a browser or service-worker bundle) — all file I/O stays in-process with no disk access. It depends only on
node:pathandminimatch, so it carries no Node-only runtime dependencies (nonode:fs,chokidar, etc.). Calling writeFile triggers any active watch callbacks synchronously, making it easy to test reactive code paths.Example