[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 { Action } from './action';
|
---|
| 10 | import { DirEntry, FileEntry, FileVisitor, MergeStrategy, Tree, UpdateRecorder } from './interface';
|
---|
| 11 | export declare class DelegateTree implements Tree {
|
---|
| 12 | protected _other: Tree;
|
---|
| 13 | constructor(_other: Tree);
|
---|
| 14 | branch(): Tree;
|
---|
| 15 | merge(other: Tree, strategy?: MergeStrategy): void;
|
---|
| 16 | get root(): DirEntry;
|
---|
| 17 | read(path: string): Buffer | null;
|
---|
| 18 | exists(path: string): boolean;
|
---|
| 19 | get(path: string): FileEntry | null;
|
---|
| 20 | getDir(path: string): DirEntry;
|
---|
| 21 | visit(visitor: FileVisitor): void;
|
---|
| 22 | overwrite(path: string, content: Buffer | string): void;
|
---|
| 23 | beginUpdate(path: string): UpdateRecorder;
|
---|
| 24 | commitUpdate(record: UpdateRecorder): void;
|
---|
| 25 | create(path: string, content: Buffer | string): void;
|
---|
| 26 | delete(path: string): void;
|
---|
| 27 | rename(from: string, to: string): void;
|
---|
| 28 | apply(action: Action, strategy?: MergeStrategy): void;
|
---|
| 29 | get actions(): Action[];
|
---|
| 30 | }
|
---|