/// /** * @license * Copyright Google Inc. 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/Observable'; import { Subject } from 'rxjs/Subject'; import { FileSystemSink } from './filesystem'; export interface DryRunErrorEvent { kind: 'error'; description: 'alreadyExist' | 'doesNotExist'; path: string; } export interface DryRunDeleteEvent { kind: 'delete'; path: string; } export interface DryRunCreateEvent { kind: 'create'; path: string; content: Buffer; } export interface DryRunUpdateEvent { kind: 'update'; path: string; content: Buffer; } export interface DryRunRenameEvent { kind: 'rename'; path: string; to: string; } export declare type DryRunEvent = DryRunErrorEvent | DryRunDeleteEvent | DryRunCreateEvent | DryRunUpdateEvent | DryRunRenameEvent; export declare class DryRunSink extends FileSystemSink { protected _subject: Subject; protected _fileDoesNotExistExceptionSet: Set; protected _fileAlreadyExistExceptionSet: Set; readonly reporter: Observable; constructor(root?: string, force?: boolean); protected _fileAlreadyExistException(path: string): void; protected _fileDoesNotExistException(path: string): void; _done(): Observable; }