import type { SummaryStreamHandler } from "../engine/events.js";
import type { UrlFlowContext } from "../run/flows/url/types.js";
import { type PreparedSummarizeExecution } from "./execution-resources.js";
import type { SummarizeEventSink, SummarizeRequest, SummarizeRuntime } from "./summarize-contracts.js";
export declare function createEventSummaryStreamHandler(emit: SummarizeEventSink): SummaryStreamHandler;
export declare function createEventWritable(emit: SummarizeEventSink, enabled?: boolean): NodeJS.WritableStream;
export declare function createSummarizeRuntimeResources(args: {
    request: SummarizeRequest;
    runtime: SummarizeRuntime;
    runStartedAtMs: number;
    emit: SummarizeEventSink;
}): PreparedSummarizeExecution;
export declare function createSummarizeUrlFlowContext(args: {
    request: SummarizeRequest;
    runtime: SummarizeRuntime;
    runStartedAtMs: number;
    emit: SummarizeEventSink;
}): UrlFlowContext;
