import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent"; import { type GoalRuntimeEventHandlers } from "./goal-runtime-event-handlers.js"; import { type StatusContext } from "./goal-runtime-status.js"; import { type GoalStartTurnStrategy } from "./recovery-machine.js"; import type { GoalEntrySource, GoalResult, ThreadGoal } from "./types.js"; export interface GoalRuntimeController extends GoalRuntimeEventHandlers { getGoalForDisplay(): ThreadGoal | null; getGoalStartTurnStrategy(): GoalStartTurnStrategy; setGoal(goal: ThreadGoal, source: GoalEntrySource, ctx: ExtensionContext): void; clearGoal(source: GoalEntrySource, ctx: ExtensionContext): void; completeGoal(source: GoalEntrySource, ctx: ExtensionContext): GoalResult; cancelProviderLimitAutoResume(goalId: string, ctx: StatusContext): void; resumeGoalWithContinuation(goalId: string, source: GoalEntrySource, ctx: StatusContext): GoalResult; } export declare function createGoalRuntimeController(pi: ExtensionAPI): GoalRuntimeController; export declare function registerGoalRuntimeController(pi: ExtensionAPI): void; //# sourceMappingURL=goal-runtime-controller.d.ts.map