/** * @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 { type Path } from '@angular-devkit/core'; import { type Tree, type UpdateRecorder } from '@angular-devkit/schematics'; import { type DirectoryEntry, FileSystem } from './file-system'; /** * File system that leverages the virtual tree from the CLI devkit. This file * system is commonly used by `ng update` migrations that run as part of the * Angular CLI. */ export declare class DevkitFileSystem extends FileSystem { readonly tree: Tree; private readonly updateRecorderCache; constructor(tree: Tree); resolve(...segments: string[]): Path; edit(filePath: Path): UpdateRecorder; commitEdits(): void; exists(fileOrDirPath: Path): boolean; overwrite(filePath: Path, content: string): void; create(filePath: Path, content: string): void; delete(filePath: Path): void; read(filePath: Path | string): string | null; readDirectory(dirPath: Path): DirectoryEntry; }