import type { GoalSpec } from "../contracts/goal.js";
import type { RunState } from "../contracts/orchestration.js";
import type { EnsembleDecisionResult } from "../orchestration/ensemble-decision.js";
export interface SavedEnsembleDecision {
    goalId: string;
    runId: string;
    timestamp: string;
    action: string;
    confidence: number;
    shouldContinue: boolean;
    candidateVotes: Array<{
        id: string;
        action: string;
        weight: number;
        reason: string;
    }>;
    rationale: string;
    nextPrompt?: string;
    divergence?: boolean;
    confidenceTrend?: "rising" | "falling" | "stable";
}
export declare function saveEnsembleDecision(goal: GoalSpec, runState: RunState, ensemble: EnsembleDecisionResult, root: string, meta?: {
    divergence?: boolean;
    confidenceTrend?: "rising" | "falling" | "stable";
}): Promise<void>;
export declare function recallRecentEnsembleDecisions(goalId: string, root: string, limit?: number): Promise<SavedEnsembleDecision[]>;
