import type { FasedAgentConfig } from "../config/config.js";
type ModelEntry = {
    id: string;
    contextWindow?: number;
    contextTokens?: number;
};
type ConfigModelEntry = {
    id?: string;
    contextWindow?: number;
    contextTokens?: number;
};
type ProviderConfigEntry = {
    models?: ConfigModelEntry[];
};
type ModelsConfig = {
    providers?: Record<string, ProviderConfigEntry | undefined>;
};
export declare const ANTHROPIC_CONTEXT_1M_TOKENS = 1048576;
export declare function applyDiscoveredContextWindows(params: {
    cache: Map<string, number>;
    models: ModelEntry[];
}): void;
export declare function applyConfiguredContextWindows(params: {
    cache: Map<string, number>;
    modelsConfig: ModelsConfig | undefined;
}): void;
export declare function lookupContextTokens(modelId?: string, _options?: {
    allowAsyncLoad?: boolean;
}): number | undefined;
export declare function resetContextWindowCacheForTest(): void;
export declare function resolveContextTokensForModel(params: {
    cfg?: FasedAgentConfig;
    provider?: string;
    model?: string;
    contextTokensOverride?: number;
    fallbackContextTokens?: number;
}): number | undefined;
export {};
