import type { StorybookBrowserBootstrapTelemetry } from './bootstrap-telemetry.mts'; import type { StorybookBrowserDiagnostics } from './diagnostics.mts'; import { type ProjectOutputPatterns } from './output-patterns.mts'; import { type OutputObserverSnapshot } from './observer-state.mts'; import type { StorybookQuietOutput } from './quiet-output.mts'; type Source = 'stderr' | 'stdout'; type Sink = Pick; export type OutputObserverOptions = { diagnostics: StorybookBrowserDiagnostics; now: () => number; patterns: ProjectOutputPatterns; progressPrefix: string; quietOutput: StorybookQuietOutput; startedAt: number; stderr: Sink; stdout: Sink; telemetry: StorybookBrowserBootstrapTelemetry; }; /** Reads child output and latches the startup, progress and failure markers the policy needs. */ export declare class OutputObserver { private readonly newOptimizeDeps; private readonly options; private lastSemanticSequence; private readonly decoders; private state; constructor(options: OutputObserverOptions); snapshot(): OutputObserverSnapshot; observe(source: Source, chunk: string | Buffer): void; /** Emits any unterminated lines the telemetry still holds, stdout before stderr. */ flush(): void; private emit; private observeStartup; private observeProgress; private recordSemanticProgress; private observeFailures; } export {};