import type { ExtensionAPI, ExtensionCommandContext } from "@earendil-works/pi-coding-agent"; import { type ClipboardCopyResult } from "./clipboard.js"; import type { GoalStartTurnStrategy } from "./recovery-machine.js"; import { type GoalEntrySource, type ThreadGoal } from "./types.js"; export interface CommandHost { getGoal(): ThreadGoal | null; setGoal(goal: ThreadGoal, source: GoalEntrySource, ctx: GoalCommandContext): void; clearGoal(source: GoalEntrySource, ctx: GoalCommandContext): void; cancelProviderLimitAutoResume(goalId: string, ctx: GoalCommandContext): void; getGoalStartTurnStrategy(): GoalStartTurnStrategy; resumeGoalWithContinuation(goalId: string, source: GoalEntrySource, ctx: GoalCommandContext): { ok: boolean; message: string; goal: ThreadGoal | null; }; } type CopyText = (text: string) => Promise; export type GoalCommandPi = Pick; export interface GoalCommandContext { hasUI: boolean; ui: Pick; } export declare function handleGoalCommand(pi: GoalCommandPi, host: CommandHost, args: string, ctx: GoalCommandContext, copyText?: CopyText): Promise; export declare function registerGoalCommand(pi: GoalCommandPi, host: CommandHost): void; export {}; //# sourceMappingURL=commands.d.ts.map