/** * APIClaw Analytics - Track all API usage * Both managed and Open API calls are logged here */ export interface APICallLog { timestamp: string; provider: string; action: string; type: 'direct' | 'open'; userId?: string; success: boolean; latencyMs?: number; error?: string; metadata?: { product?: string; [key: string]: any; }; } /** * Log an API call to local file AND Convex */ export declare function logAPICall(log: APICallLog): void; /** * Webhook for real-time analytics (optional) * Set APICLAW_ANALYTICS_WEBHOOK env var to enable */ export declare function sendToWebhook(log: APICallLog): Promise; /** * Track API call with timing */ export declare function trackAPICall(provider: string, action: string, type: 'direct' | 'open', userId: string | undefined, fn: () => Promise): Promise; //# sourceMappingURL=mcp-analytics.d.ts.map