/**
 * AI usage aggregation.
 *
 * Until the dedicated per-run metering table lands (Phase 4), usage is derived
 * from token totals already recorded in `actuate_audit_logs` (`details
 * .totalTokensUsed` / `details.tokensUsed`). This returns REAL counts — it is 0
 * when nothing has run, never a fabricated number.
 */
import type { AIUsageSummary } from './types.js';
/**
 * Sum token usage from audit-log entries within the period. Recognizes the
 * fields current AI handlers write today and is tolerant of missing data.
 */
export declare function getUsageSummary(db: unknown, period?: {
    start?: Date;
    end?: Date;
}): Promise<AIUsageSummary>;
//# sourceMappingURL=usage.d.ts.map