/** * @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 { Observable } from 'rxjs'; import { Path, PathFragment } from '../path'; import { FileBuffer, HostCapabilities, ReadonlyHost, Stats } from './interface'; /** * A Host that filters out errors. The only exception is `read()` which will still error out if * the delegate returned an error (e.g. NodeJS will error out if the file doesn't exist). */ export declare class SafeReadonlyHost implements ReadonlyHost { private _delegate; constructor(_delegate: ReadonlyHost); get capabilities(): HostCapabilities; read(path: Path): Observable; list(path: Path): Observable; exists(path: Path): Observable; isDirectory(path: Path): Observable; isFile(path: Path): Observable; stat(path: Path): Observable | null> | null; }