/**
 * Analytics Aggregator
 *
 * Aggregates raw analytics events into summaries, top lists, and daily breakdowns.
 */
import { AnalyticsSummary, AnalyticsQueryOptions } from './types.js';
/**
 * Aggregates analytics events into summaries
 */
export declare class AnalyticsAggregator {
    private collector;
    private cacheFile;
    private cacheTTLMs;
    constructor(projectRoot?: string);
    /**
     * Get aggregated analytics summary
     */
    getSummary(options?: AnalyticsQueryOptions): AnalyticsSummary;
    /**
     * Get top items by event type
     */
    private getTopByType;
    /**
     * Aggregate events by name
     */
    private aggregateByName;
    /**
     * Get daily summaries
     */
    private getDailySummaries;
    /**
     * Calculate overall success rate
     */
    private calculateSuccessRate;
    /**
     * Get cached summary if valid
     */
    getCachedSummary(): AnalyticsSummary | null;
    /**
     * Cache the summary
     */
    cacheSummary(summary: AnalyticsSummary): void;
    /**
     * Get summary with caching
     */
    getSummaryWithCache(options?: AnalyticsQueryOptions): AnalyticsSummary;
    /**
     * Generate daily summary and save to file
     */
    generateDailySummary(): void;
    /**
     * Export analytics data
     */
    export(format: 'json' | 'csv', options?: AnalyticsQueryOptions): {
        filename: string;
        content: string;
    };
}
//# sourceMappingURL=analytics-aggregator.d.ts.map