/**
 * Cache event logging + daily metrics rollup.
 * Tracks hits, misses, tokens saved, and provides rollup for dashboards.
 */
export type EventType = 'hit' | 'miss' | 'expire' | 'warm';
export declare function logEvent(params: {
    cacheEntryId: string | null;
    eventType: EventType;
    agent: string;
    normalizedQuery?: string;
    similarityScore?: number;
    tokensSaved?: number;
    latencyMs?: number;
}): Promise<void>;
/**
 * Flush Redis counters into cache_metrics_daily table.
 * Called by the warming worker on each cycle.
 */
export declare function flushDailyMetrics(): Promise<void>;
/**
 * Prune expired cache entries from PostgreSQL
 */
export declare function pruneExpired(): Promise<number>;
//# sourceMappingURL=metrics.d.ts.map