import type { ToolResult } from '../tools/types.js'; export declare const STREAM_CUT_MAX_REDISPATCH = 1; export declare const STREAM_CUT_REDISPATCH_DELAY_MS = 1000; export declare function isZeroOutputStreamCut(result: ToolResult): boolean; export interface StreamCutProbe { sideEffectFree: boolean; } export interface StreamCutRetryOptions { dispatch: (attempt: number) => Promise; signal: AbortSignal; maxRedispatch?: number; delayMs?: number; canRedispatch?: () => boolean; onRedispatch?: (attempt: number) => void; } export declare function runWithStreamCutRetry(opts: StreamCutRetryOptions): Promise;