/**
 * Request audit log — structured ring buffer of recent requests with filtering.
 * Complements capture.ts (full exchange data) with lightweight summary entries.
 */
export interface AuditEntry {
    id: string;
    timestamp: string;
    method: string;
    path: string;
    model: string;
    statusCode: number;
    durationMs: number;
    inputTokens?: number;
    outputTokens?: number;
    error?: string;
}
/**
 * Record a request in the audit log.
 */
export declare function auditRequest(entry: Omit<AuditEntry, 'id' | 'timestamp'>): void;
export interface AuditFilter {
    model?: string;
    path?: string;
    minStatus?: number;
    maxStatus?: number;
    minDurationMs?: number;
    limit?: number;
}
/**
 * Query the audit log with optional filters.
 */
export declare function queryAudit(filter?: AuditFilter): AuditEntry[];
/**
 * Get audit log summary statistics.
 */
export declare function getAuditSummary(): {
    totalEntries: number;
    uniqueModels: string[];
    uniquePaths: string[];
    errorCount: number;
    avgDurationMs: number;
};
/**
 * Format audit entries for display.
 */
export declare function formatAuditEntries(auditEntries: AuditEntry[], maxLines?: number): string;
/**
 * Reset audit log (for testing).
 */
export declare function resetAudit(): void;
