1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import { Stats } from 'node:fs';
|
10 | import { Observable } from 'rxjs';
|
11 | import { Path, PathFragment, virtualFs } from '../src';
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export declare class NodeJsAsyncHost implements virtualFs.Host<Stats> {
|
17 | get capabilities(): virtualFs.HostCapabilities;
|
18 | write(path: Path, content: virtualFs.FileBuffer): Observable<void>;
|
19 | read(path: Path): Observable<virtualFs.FileBuffer>;
|
20 | delete(path: Path): Observable<void>;
|
21 | rename(from: Path, to: Path): Observable<void>;
|
22 | list(path: Path): Observable<PathFragment[]>;
|
23 | exists(path: Path): Observable<boolean>;
|
24 | isDirectory(path: Path): Observable<boolean>;
|
25 | isFile(path: Path): Observable<boolean>;
|
26 | stat(path: Path): Observable<virtualFs.Stats<Stats>>;
|
27 | watch(path: Path, _options?: virtualFs.HostWatchOptions): Observable<virtualFs.HostWatchEvent> | null;
|
28 | }
|
29 |
|
30 |
|
31 |
|
32 | export declare class NodeJsSyncHost implements virtualFs.Host<Stats> {
|
33 | get capabilities(): virtualFs.HostCapabilities;
|
34 | write(path: Path, content: virtualFs.FileBuffer): Observable<void>;
|
35 | read(path: Path): Observable<virtualFs.FileBuffer>;
|
36 | delete(path: Path): Observable<void>;
|
37 | rename(from: Path, to: Path): Observable<void>;
|
38 | list(path: Path): Observable<PathFragment[]>;
|
39 | exists(path: Path): Observable<boolean>;
|
40 | isDirectory(path: Path): Observable<boolean>;
|
41 | isFile(path: Path): Observable<boolean>;
|
42 | stat(path: Path): Observable<virtualFs.Stats<Stats>>;
|
43 | watch(path: Path, _options?: virtualFs.HostWatchOptions): Observable<virtualFs.HostWatchEvent> | null;
|
44 | }
|