[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | /// <reference types="node" />
|
---|
| 9 | import { BaseException, Path, PathFragment } from '@angular-devkit/core';
|
---|
| 10 | import { Action } from './action';
|
---|
| 11 | import { DirEntry, MergeStrategy, Tree, UpdateRecorder } from './interface';
|
---|
| 12 | export declare class CannotCreateFileException extends BaseException {
|
---|
| 13 | constructor(path: string);
|
---|
| 14 | }
|
---|
| 15 | export declare class NullTreeDirEntry implements DirEntry {
|
---|
| 16 | readonly path: Path;
|
---|
| 17 | get parent(): DirEntry | null;
|
---|
| 18 | constructor(path: Path);
|
---|
| 19 | readonly subdirs: PathFragment[];
|
---|
| 20 | readonly subfiles: PathFragment[];
|
---|
| 21 | dir(name: PathFragment): DirEntry;
|
---|
| 22 | file(_name: PathFragment): null;
|
---|
| 23 | visit(): void;
|
---|
| 24 | }
|
---|
| 25 | export declare class NullTree implements Tree {
|
---|
| 26 | branch(): Tree;
|
---|
| 27 | merge(_other: Tree, _strategy?: MergeStrategy): void;
|
---|
| 28 | readonly root: DirEntry;
|
---|
| 29 | exists(_path: string): boolean;
|
---|
| 30 | read(_path: string): null;
|
---|
| 31 | get(_path: string): null;
|
---|
| 32 | getDir(path: string): NullTreeDirEntry;
|
---|
| 33 | visit(): void;
|
---|
| 34 | beginUpdate(path: string): never;
|
---|
| 35 | commitUpdate(record: UpdateRecorder): never;
|
---|
| 36 | copy(path: string, _to: string): never;
|
---|
| 37 | delete(path: string): never;
|
---|
| 38 | create(path: string, _content: Buffer | string): never;
|
---|
| 39 | rename(path: string, _to: string): never;
|
---|
| 40 | overwrite(path: string, _content: Buffer | string): never;
|
---|
| 41 | apply(_action: Action, _strategy?: MergeStrategy): void;
|
---|
| 42 | get actions(): Action[];
|
---|
| 43 | }
|
---|