import type { SummaryStreamHandler } from "../engine/events.js";
import { type StreamOutputMode } from "./stream-output.js";
export declare function createTerminalSummaryStream({ stdout, env, envForRun, plain, outputMode, clearProgressForStdout, restoreProgressAfterStdout, }: {
    stdout: NodeJS.WritableStream;
    env: Record<string, string | undefined>;
    envForRun: Record<string, string | undefined>;
    plain: boolean;
    outputMode?: StreamOutputMode | null;
    clearProgressForStdout: () => void;
    restoreProgressAfterStdout?: (() => void) | null;
}): SummaryStreamHandler;
