import type { AnalysisOptions, TraceDataset } from '../agent/core/orchestratorTypes';
import type { Finding, ConversationTurn } from '../agent/types';
import type { Hypothesis as ProtocolHypothesis } from '../agent/types/agentProtocol';
import type { Hypothesis } from '../agentv3/types';
import { type OutputLanguage } from '../agentv3/outputLanguage';
import { SkillNotesBudget } from '../agentv3/selfImprove/skillNotesInjector';
import type { ProviderScope } from '../services/providerManager';
import type { KnowledgeScope } from '../services/scopedKnowledgeStore';
export declare const SDK_SESSION_FRESHNESS_MS: number;
export declare const DEFAULT_RUNTIME_CACHE_LIMIT = 50;
export declare function providerScopeFromAnalysisOptions(options: AnalysisOptions): ProviderScope | undefined;
export declare function knowledgeScopeFromAnalysisOptions(options: AnalysisOptions): KnowledgeScope | undefined;
export declare function buildRuntimeSessionMapKey(sessionId: string, referenceTraceId?: string): string;
export declare function isFreshRuntimeEntry<T extends {
    updatedAt?: number;
}>(entry: T | undefined, freshnessMs?: number, now?: number): entry is T & {
    updatedAt: number;
};
export declare function getLruCacheEntry<K, V>(cache: Map<K, V>, key: K): V | undefined;
export declare function setLruCacheEntry<K, V>(cache: Map<K, V>, key: K, value: V, maxEntries?: number): void;
export declare function formatTraceContext(datasets: TraceDataset[] | undefined, outputLanguage?: OutputLanguage): string;
export declare function buildQuickConversationContext(previousTurns: ConversationTurn[], outputLanguage?: OutputLanguage): string | undefined;
export declare function collectRecentFindings(sessionContext: any, options?: {
    maxTurns?: number;
    maxFindings?: number;
}): Finding[];
export declare function buildEntityContext(entityStore: any): string | undefined;
export declare function captureSkillDisplayEntities(displayResults: Array<{
    stepId?: string;
    data?: any;
}>, entityStore: any, agentId: string): void;
export declare function toProtocolHypothesis(h: Hypothesis, source: 'claude' | 'openai'): ProtocolHypothesis;
export declare function createRuntimeSkillNotesBudget(lightweight: boolean): SkillNotesBudget | undefined;
//# sourceMappingURL=runtimeCommon.d.ts.map