import type { ClosureReason } from '../trace/index.js'; import { isTruncationStopReason } from '../providers/shared/truncation.js'; export { isTruncationStopReason }; export interface ClosureReasonInputs { dispatchReason: string; maxTurnsHit: boolean; hookBlocked: boolean; abort: 'budget_exceeded' | 'timeout' | 'abort' | null; lastStopReason: string | undefined; sawProviderError: boolean; } export declare function classifyClosureReason(i: ClosureReasonInputs): ClosureReason;