import type { GeneratorStepGenerate } from '../types/generator'; import type { ClayModelEntry } from '../types/clay-file'; export interface FormatterSpec { readonly pkg: string; readonly options: Record; readonly isNew: boolean; } export interface SelectItem { readonly modelData: unknown; readonly templatePath: string; readonly fileNamePattern: string; readonly outputDir: string; readonly step: GeneratorStepGenerate; readonly modelIndex: ClayModelEntry; readonly formatters: readonly FormatterSpec[]; } export interface RenderedItem { readonly filename: string; readonly content: string; readonly step: GeneratorStepGenerate; readonly modelIndex: ClayModelEntry; readonly formatters: readonly FormatterSpec[]; } export interface ChangedItem { readonly filename: string; readonly content: string; readonly md5: string; readonly step: GeneratorStepGenerate; readonly modelIndex: ClayModelEntry; readonly formatters: readonly FormatterSpec[]; } export interface FormattedItem { readonly filename: string; readonly content: string; readonly md5: string; readonly step: GeneratorStepGenerate; readonly modelIndex: ClayModelEntry; } export interface WrittenItem { readonly filename: string; readonly md5: string; readonly step: GeneratorStepGenerate; readonly modelIndex: ClayModelEntry; } export type Stage = (input: AsyncIterable) => AsyncGenerator; export declare function compose(first: Stage, second: Stage): Stage; export declare class PipelineBuilder { private readonly stage; constructor(stage: Stage); pipe(next: Stage): PipelineBuilder; build(): Stage; } export declare function pipeline(stage: Stage): PipelineBuilder; //# sourceMappingURL=types.d.ts.map