export interface RecentToolCall { name: string; params: unknown; resultPreview?: string; revision?: string; } /** Warn on a stalled tail, without removing tools needed to recover or verify a repair. */ export declare function detectToolLoops(recentCalls: readonly RecentToolCall[]): { injection: string | null; };