import type { ProcessType } from '../config/schema.js'; export type BuildEvent = { type: 'build:start'; } | { type: 'build:progress'; percent: number; } | { type: 'build:complete'; success: boolean; errors: number; warnings: number; durationMs?: number; } | { type: 'build:failed'; reason?: string; }; export type LineParser = (line: string) => BuildEvent | null; /** * A reduced, serializable snapshot of where a process's most recent build * stands. Unlike `BuildEvent` (a momentary signal), this is the *current* * state — what a reporter pins next to the process. Each event fully * determines the next state, so the reducer ignores the prior one. */ export type BuildStatus = { phase: 'building'; percent?: number; } | { phase: 'done'; success: boolean; errors: number; warnings: number; durationMs?: number; } | { phase: 'failed'; reason?: string; }; export declare function reduceBuild(event: BuildEvent): BuildStatus; export declare function stripAnsi(s: string): string; export declare const parseWebpackLine: LineParser; export declare const parseAngularLine: LineParser; export declare function getParser(type: ProcessType): LineParser | null; //# sourceMappingURL=parsers.d.ts.map