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