import { AntriConfig } from '../types.js'; export interface GoalIterationResult { iteration: number; type: 'draft' | 'review' | 'refinement'; content: string; qualityScore?: number; } export interface GoalCallbacks { onStatus?: (status: { iteration: number; message: string; type: string; }) => void; onStage?: (stage: GoalIterationResult) => void; onToken?: (iteration: number, token: string) => void; } export interface GoalLoopResult { objective: string; draft: string; critique: string; finalOutput: string; iterations: GoalIterationResult[]; duration: string; } export declare class GoalLoopEngine { private config; private toolExecutor; constructor(config: AntriConfig); runGoal(goalPrompt: string, maxIterations?: number, callbacks?: GoalCallbacks): Promise; generateInteractiveGoalHtml(objective: string, draft: string, critique: string, finalSolution: string, duration?: string): string; /** * Executes the Goal Loop silently in the background and returns the hardened solution. */ runSilentGoal(goalPrompt: string): Promise; } //# sourceMappingURL=goalLoop.d.ts.map