import { ITransformed, ITree } from '../Bulldog'; import { Processor } from './../Processor'; /** * An abstract class for processes. All processes should extend from this. */ export declare abstract class Process> { /** * Options for the process */ options: T; /** * Whether the process runs on a folder */ folder: boolean; /** * Whether logs should be expressed. */ verbose: boolean; /** * @param options - Options to be used by child class */ constructor(options?: T); /** * Called once at the start. * @param _tree - * @param _processor - Processor that called the function. */ start?(_tree: ITree, _processor: Processor): void; /** * Called once after tree has been processed. * @param _tree - * @param _processor - Processor that called the function. */ finish?(_tree: ITree, _processor: Processor): void; /** * Returns a boolean on whether or not the process should affect this tree. * @param _tree - Tree to be tested. * @returns By defaults returns false. */ test(_tree: ITree | ITransformed): boolean; /** * Called when tree is marked for deletion. * @param _tree - * @param _processor - Processor that called the function. */ delete?(_tree: ITree, _processor: Processor): Promise; /** * * @param _tree - * @param _processor - Processor that called the function. */ transform?(_tree: ITree, _processor: Processor): Promise; /** * If test is passed then this is called. * @param _transformedFile - * @param _processor - Processor that called the function. */ post?(_transformedFile: ITransformed, _processor: Processor): Promise; } //# sourceMappingURL=Process.d.ts.map