/** * Shared stop-hook continuation building and run-state resolution. * * Moved from claudeCode/stopHookState.ts — this logic is generic across * all harness adapters that implement a blocking stop-hook lifecycle. */ import type { HookLogger } from "./utils"; export interface ParsedAssistantState { lastText: string | null; hasPromise: boolean; promiseValue: string | null; } export declare function parseAssistantStopState(hookInput: Record, log: HookLogger): ParsedAssistantState; export interface StopHookRunStateDetails { runState: string; completionProof: string; pendingKinds: string; onlyBreakpointsPending: boolean; currentPendingEffectId?: string; entrypointImportPath?: string; runDir: string; lookupError?: string; } export declare function resolveStopHookRunState(args: { runId: string; runsDir: string; preferredRunDir?: string; log: HookLogger; }): Promise; export declare function onlyExternallyRoutedEffectsPending(runDir: string, pendingRecords: Array<{ effectId: string; kind?: string; }>): Promise; export declare function hostDelegablePendingRecords(runDir: string, pendingRecords: T[]): Promise; export declare function buildStopHookContinuation(args: { nextIteration: number; maxIterations: number; runState: string; pendingKinds: string; completionProof: string; prompt: string; resolvedPluginRoot: string; runId?: string; runsDir: string; entrypointImportPath?: string; }): Promise<{ reason: string; systemMessage: string; }>; //# sourceMappingURL=stopHookContinuation.d.ts.map