import { Tree } from '@angular-devkit/schematics'; import { Observable } from 'rxjs'; export interface TransformWithPath { (aSource: T | undefined, aPath: string): Observable; } export interface TransformWithoutPath { (aSource: T | undefined): Observable; } export declare type TransformCallback = TransformWithPath | TransformWithoutPath; /** * Reads a text file from the tree and then transforms it using the given function. If the result * is null or undefined, the file will be deleted, else replaced or created. * * @param aName name of the file * @param aOp the operator * @param aTree the tree to work in */ export declare function rxTransformTextFile(aName: string, aOp: TransformCallback, aTree: Tree): Observable; /** * Reads a JSON file from the tree and then transforms it using the given function. If the result * is null or undefined, the file will be deleted, else replaced or created. * * @param aName name of the file * @param aOp the operator * @param aTree the tree to work in */ export declare function rxTransformJsonFile(aName: string, aOp: TransformCallback, aTree: Tree): Observable; /** * Reads a line based file from the tree and then transforms it using the given function. If the result * is null or undefined, the file will be deleted, else replaced or created. * * @param aName name of the file * @param aOp the operator * @param aTree the tree to work in */ export declare function rxTransformLinesFile(aName: string, aOp: TransformCallback, aTree: Tree): Observable;