import { type GoalRecoveryMachineState } from "./recovery-machine.js"; import { type AssistantErrorMessage } from "./recovery.js"; import type { ThreadGoal } from "./types.js"; interface RecoveryRuntimeDeps { getGoal: () => ThreadGoal | null; getRecoveryState: () => GoalRecoveryMachineState; clearContinuationState: () => void; pauseGoalForRecovery: (ctx: TContext, recoveryReason: string) => void; refreshUi: (ctx: TContext) => void; maybeContinue: (ctx: TContext) => void; scheduleProviderLimitAutoResume: (goalId: string, ctx: TContext) => void; } export declare function createGoalRecoveryRuntime(deps: RecoveryRuntimeDeps): { onUserInput: () => void; onSessionCompact: () => void; handlePersistentAssistantError: (message: AssistantErrorMessage, ctx: TContext) => void; handleSilentContextOverflow: (ctx: TContext) => void; finishSuccessfulAssistantTurn: (message: AssistantErrorMessage, ctx: TContext, options?: { continueGoal?: boolean; }) => void; }; export {}; //# sourceMappingURL=recovery-runtime.d.ts.map