1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { Observable } from 'rxjs';
|
9 | import { Path, PathFragment } from '../path';
|
10 | import { FileBuffer, HostCapabilities, ReadonlyHost, Stats } from './interface';
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export declare class SafeReadonlyHost<StatsT extends object = {}> implements ReadonlyHost<StatsT> {
|
16 | private _delegate;
|
17 | constructor(_delegate: ReadonlyHost<StatsT>);
|
18 | get capabilities(): HostCapabilities;
|
19 | read(path: Path): Observable<FileBuffer>;
|
20 | list(path: Path): Observable<PathFragment[]>;
|
21 | exists(path: Path): Observable<boolean>;
|
22 | isDirectory(path: Path): Observable<boolean>;
|
23 | isFile(path: Path): Observable<boolean>;
|
24 | stat(path: Path): Observable<Stats<StatsT> | null> | null;
|
25 | }
|