import type { Config } from '../../config/schema.js';
import type { GoalPostTurnDecision } from './evaluate-turn.js';
import type { GoalRunRecord } from './goal-run-types.js';
export declare function resolveGoalRunsFilePath(config: Config, sessionKey: string): string;
/**
 * Append one run after persistent-goal post-turn evaluation (best-effort; logs on failure).
 */
export declare function appendGoalRun(opts: {
    config: Config;
    sessionKey: string;
    decision: GoalPostTurnDecision;
    assistantPlainText: string;
}): Promise<void>;
/**
 * List runs for a session (newest first). Missing or invalid file yields [].
 */
export declare function listGoalRuns(config: Config, sessionKey: string, opts?: {
    limit?: number;
}): Promise<GoalRunRecord[]>;
