export declare const MAX_RECENT_CALLS = 50; export declare const DEFAULT_MIN_CALLS_FOR_SCORE = 5; export interface RecentCall { timestamp: number; ok: boolean; latencyMs: number; tokens?: number; } export interface ModelTelemetry { providerKey: string; modelId: string; totalCalls: number; successCalls: number; totalLatencyMs: number; totalCompletionTokens: number; completionTokenCalls: number; lastCalledAt: number; recentCalls: RecentCall[]; } export interface TelemetryData { version: 2; models: Record; } export declare function getRuntimeTelemetryPath(): string; export declare function loadRuntimeTelemetry(opts?: { path?: string; reload?: boolean; }): TelemetryData; export declare function flushRuntimeTelemetry(opts?: { path?: string; telemetry?: TelemetryData; }): void; export declare function recordModelCall(providerKey: string, modelId: string, callResult: { ok: boolean; latencyMs: number; completionTokens?: number; }, opts?: { now?: number; path?: string; }): void; export declare function getRealWorldScore(providerKey: string, modelId: string, opts?: { minCalls?: number; path?: string; telemetry?: TelemetryData; now?: number; }): number | null; /** Most recent successful real request, used to avoid actively probing what traffic just proved. */ export declare function getLastSuccessfulCallAt(providerKey: string, modelId: string, opts?: { path?: string; telemetry?: TelemetryData; }): number | null;