export type ToolOutcomeKind = "timeout" | "success" | "other-error"; export interface TimeoutToolOutcome { toolName: string; argsKey: string; kind: ToolOutcomeKind; } export interface TimeoutHoldState { heldSnapshotKey?: string; fingerprint?: string; streak: number; } export declare function toResultText(result: unknown): string; export declare function classifyToolOutcome(isError: unknown, text: string): ToolOutcomeKind; export declare function canonicalArgsKey(args: unknown): string; export declare function turnTimeoutFingerprint(outcomes: readonly TimeoutToolOutcome[]): string | null; export declare function decideTimeoutHold(prev: TimeoutHoldState, turn: { snapshotKey: string; fingerprint: string | null; }): { hold: boolean; next: TimeoutHoldState; };