import type { LLMProvider } from '../llm/types.js'; import type { EntityIndex, IndexNode } from '../entities/entity-index.js'; import type { IntentResult } from './intent-classifier.js'; import type { ContextManifest } from './context-manifest.js'; export interface FetchRequest { type: string; query?: string; ids?: string[]; limit?: number; } export interface LoopDecision { action: 'fetch' | 'ready'; reasoning: string; requests?: FetchRequest[]; contextSummary?: string; } export interface GatheredContext { nodes: IndexNode[]; summary: string; rounds: number; } export declare function runContextLoop(llm: LLMProvider, intent: IntentResult, manifest: ContextManifest, entityIndex: EntityIndex, maxRounds?: number): Promise; export declare function fulfillRequests(requests: FetchRequest[], entityIndex: EntityIndex, anchorKeys?: Set): Promise; export declare function serializeGatheredContext(gathered: GatheredContext): string; //# sourceMappingURL=context-loop.d.ts.map