/** * PostgreSQL Analytics Database Integration * Consolidates analytics functionality into PostgreSQL to maintain database separation * Replaces DuckDB analytics to ensure database responsibilities are disjoint */ export interface AnalyticsMetric { project_id: string; tool_name: string; execution_time: number; cache_hit_rate: number; memory_usage?: number; timestamp: Date; metadata?: Record; } export interface CodeQualityMetric { project_id: string; file_path: string; metric_type: string; metric_value: number; tool_name: string; timestamp: Date; metadata?: Record; } export interface FileChangeEvent { project_id: string; file_path: string; event_type: string; content_hash?: string; file_size?: number; timestamp: Date; metadata?: Record; } export declare class PostgreSQLAnalyticsDatabase { private dbConnections; private logger; private initialized; constructor(projectId?: string); initialize(): Promise; private createTables; insertPerformanceMetric(metric: AnalyticsMetric): Promise; insertCodeQualityMetric(metric: CodeQualityMetric): Promise; insertFileChangeEvent(event: FileChangeEvent): Promise; getPerformanceTrends(projectId: string, hours?: number): Promise; getCodeQualityTrends(projectId: string, metricType?: string): Promise; getFileActivitySummary(projectId: string, hours?: number): Promise; getToolEfficiencyReport(projectId: string): Promise; insertPerformanceMetricsBatch(metrics: AnalyticsMetric[]): Promise; cleanupOldData(daysToKeep?: number): Promise; close(): Promise; getStats(): Promise; exportToCSV(tableName: string, outputPath: string, projectId?: string): Promise; getMetricsSummary(projectId: string): Promise; } //# sourceMappingURL=postgresql-analytics-database.d.ts.map