import { Cost, Usage } from '../types/index.js'; export interface AnalyticsEvent { event: 'completion' | 'stream' | 'error' | 'tool_use'; provider: string; model: string; usage?: Usage; cost?: Cost; error?: string; metadata?: Record; } export declare class AnalyticsService { private baseUrl; private queue; private flushInterval; constructor(baseUrl?: string); track(event: AnalyticsEvent): Promise; private flush; private startPeriodicFlush; trackCompletion(provider: string, model: string, usage: Usage, cost: Cost): Promise; trackError(provider: string, model: string, error: string): Promise; shutdown(): Promise; } export declare const analyticsService: AnalyticsService; //# sourceMappingURL=analytics.d.ts.map