import type { LanguageModel } from 'ai'; import type { RunContext } from '../types/run-context.js'; export declare const GOALS_KEY = "__goals"; export type GoalStatus = 'open' | 'resolved'; export interface TrackedGoal { topic: string; status: GoalStatus; lastTurn: number; note?: string; } export type GoalsState = Record; export declare function getGoals(state: GoalsState): TrackedGoal[]; export declare function addGoal(state: GoalsState, topic: string, lastTurn?: number, note?: string): GoalsState; export declare function resolveGoal(state: GoalsState, topic: string, lastTurn?: number): GoalsState; export declare function listOpenGoals(state: GoalsState): string[]; export declare function projectGoalsPrompt(goals: TrackedGoal[]): string; export declare function projectGoalsPromptFromState(state: GoalsState): string; export declare function updateGoalsFromTurn(ctx: RunContext, model: LanguageModel): Promise;