/** * In-memory tool usage metrics for the Frihet MCP server. * * Tracks per-tool call counts, error counts, and average duration. * Metrics are logged on graceful shutdown (SIGINT/SIGTERM in Node.js) * or can be retrieved at any time via getMetrics(). */ /** * Record a completed tool call. */ export declare function recordToolCall(tool: string, durationMs: number, success: boolean): void; /** * Get current metrics snapshot. */ export declare function getMetrics(): { tools: Record; uptime: number; }; /** * Register shutdown handlers (Node.js only). * In Workers, metrics are per-request and logged via console automatically. */ export declare function registerShutdownHook(): void; //# sourceMappingURL=metrics.d.ts.map