/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /// /// /// import { Stats } from 'node:fs'; import { Observable } from 'rxjs'; import { Path, PathFragment, virtualFs } from '../src'; /** * An implementation of the Virtual FS using Node as the background. There are two versions; one * synchronous and one asynchronous. */ export declare class NodeJsAsyncHost implements virtualFs.Host { get capabilities(): virtualFs.HostCapabilities; write(path: Path, content: virtualFs.FileBuffer): Observable; read(path: Path): Observable; delete(path: Path): Observable; rename(from: Path, to: Path): Observable; list(path: Path): Observable; exists(path: Path): Observable; isDirectory(path: Path): Observable; isFile(path: Path): Observable; stat(path: Path): Observable>; watch(path: Path, _options?: virtualFs.HostWatchOptions): Observable | null; } /** * An implementation of the Virtual FS using Node as the backend, synchronously. */ export declare class NodeJsSyncHost implements virtualFs.Host { get capabilities(): virtualFs.HostCapabilities; write(path: Path, content: virtualFs.FileBuffer): Observable; read(path: Path): Observable; delete(path: Path): Observable; rename(from: Path, to: Path): Observable; list(path: Path): Observable; exists(path: Path): Observable; isDirectory(path: Path): Observable; isFile(path: Path): Observable; stat(path: Path): Observable>; watch(path: Path, _options?: virtualFs.HostWatchOptions): Observable | null; }