import type { AurixConfig } from './Config.js'; export type ModelContextSource = 'config' | 'env' | 'cache' | 'models' | 'marker' | 'catalog' | 'registry' | 'fallback'; export interface ModelContextInfo { context: number; input?: number; output?: number; source: ModelContextSource; confidence: 'explicit' | 'high' | 'medium' | 'low'; endpoint?: string; updatedAt: number; } export declare function getCachedModelContextInfo(config: AurixConfig): ModelContextInfo | undefined; export declare function getCachedModelContextLimit(config: AurixConfig): number | undefined; export declare function saveCachedModelContextInfo(config: AurixConfig, info: ModelContextInfo): void; export declare function saveCachedModelContextLimit(config: AurixConfig, contextLength: number): void; export declare function parseProviderContextLimitFromError(error: unknown): number | undefined; export declare function parseProviderOutputLimitFromError(error: unknown): number | undefined; export declare function parseContextErrorInfo(error: unknown): Partial>; export declare function parseContextMarker(model: string): number | undefined; export declare function fallbackModelContextLimit(model: string): number; /** * Looks the model up in the LiteLLM-derived registry vendored at model-registry.json. * Sits below the curated catalog: the catalog is tiny and can be hotfixed the day a model * ships, while the registry covers the long tail we would otherwise have to guess at. */ export declare function registryModelLimits(model: string): { input: number; output?: number; } | undefined; export declare function resolveFromModelsPayload(payload: any, model: string, endpoint?: string): ModelContextInfo | undefined; export interface ModelContextResolveOptions { preferFreshModels?: boolean; timeoutMs?: number; } export declare function resolveModelContextInfo(config: AurixConfig, options?: ModelContextResolveOptions): Promise; export declare function resolveModelContextLimit(config: AurixConfig, options?: ModelContextResolveOptions): Promise; export declare function modelContextDiagnostic(info: ModelContextInfo): string; //# sourceMappingURL=ModelContext.d.ts.map