import type { MetricsHistory, MetricEntry, Difficulty, TokenBudget } from '../types/index.js';
/**
 * Get the full metrics history for a project.
 */
export declare function getMetricsHistory(projectId: string): Promise<MetricsHistory>;
/**
 * Add a completed-spec metric entry.
 */
export declare function addMetricEntry(projectId: string, entry: MetricEntry): Promise<MetricsHistory>;
/**
 * Get metric entries filtered by difficulty level.
 */
export declare function getMetricsByDifficulty(projectId: string, difficulty: Difficulty): Promise<MetricEntry[]>;
/**
 * Get metric entries for a specific spec.
 */
export declare function getMetricsForSpec(projectId: string, specId: string): Promise<MetricEntry[]>;
/**
 * Compute the average accuracy score across all entries.
 * Returns 0 when there are no entries.
 */
export declare function getAverageAccuracy(projectId: string): Promise<number>;
/**
 * Delete all metric entries for a given spec.
 * Returns the number of entries removed.
 */
export declare function deleteMetricsForSpec(projectId: string, specId: string): Promise<number>;
/**
 * Clear all metrics for a project.
 */
export declare function clearMetrics(projectId: string): Promise<void>;
/**
 * Get the current token budget for a project.
 */
export declare function getTokenBudget(projectId: string): Promise<TokenBudget>;
/**
 * Save / update the token budget for a project.
 */
export declare function saveTokenBudget(projectId: string, budget: TokenBudget): Promise<void>;
//# sourceMappingURL=metrics-store.d.ts.map