import type { ReadableStream } from 'node:stream/web';
import type { ChunkType } from '../../stream/types.js';
/**
 * The first provider chunk that starts a response worth keeping. Until one arrives a
 * model request has produced only reasoning or metadata, and a queued signal may cancel it.
 */
export declare function startsResponseContent(chunk: {
    type: string;
}): boolean;
/**
 * Reads a provider stream before output processors can hold or drop its chunks: reports
 * the first response content, and ends the stream cleanly when `interruption` aborts so
 * in-flight processing finishes normally.
 */
export declare function watchInterruptibleStream<OUTPUT>(stream: ReadableStream<ChunkType<OUTPUT>>, interruption: AbortSignal, onResponseContent: () => void): ReadableStream<ChunkType<OUTPUT>>;
/** Tracks reasoning blocks a client has seen open, so an interruption closes exactly those. */
export declare function trackOpenReasoning(chunk: {
    type: string;
    payload?: unknown;
}, openReasoningIds: Set<string>): void;
//# sourceMappingURL=interruptible-stream.d.ts.map