import type { AnalysisResult, WebhookEvent } from '../../../types/github/app.js';
declare class StatsStore {
    private startTime;
    private events;
    private eventCounters;
    private actionCounters;
    private successCount;
    private errorCount;
    private analyses;
    private analysisCount;
    recordEvent(event: Omit<WebhookEvent, 'timestamp' | 'durationMs'> & {
        durationMs?: number;
    }): void;
    recordAnalysis(result: Omit<AnalysisResult, 'id' | 'timestamp'>): void;
    getStats(): {
        uptime: number;
        startTime: number;
        totalEvents: number;
        successCount: number;
        errorCount: number;
        byEvent: {
            [event: string]: number;
        };
        byAction: {
            [action: string]: number;
        };
        totalAnalyses: number;
        recentEvents: WebhookEvent[];
        recentAnalyses: AnalysisResult[];
    };
    getHealth(): {
        status: string;
        uptime: number;
        totalEvents: number;
        errorRate: number;
        timestamp: number;
    };
    reset(): void;
}
export declare const statsStore: StatsStore;
export {};
//# sourceMappingURL=stats-store.d.ts.map