import type { EventStream } from '../../provider/pi-ai-types.js'; import type { Message } from '../session/session-jsonl.js'; import { type MiniAgentEvent, type MiniAgentResult } from '../subagent/agent-events.js'; import type { AgentLoopHardCaps, AgentLoopParams } from './agent-loop-types.js'; export type { AgentLoopDeps, AgentLoopExtensions, AgentLoopHardCaps, AgentLoopIdentity, AgentLoopParams, AgentLoopPlatformConfig, AgentLoopPolicy, AgentLoopPromptInput, AgentLoopProviderInput, AgentLoopToolInput, } from './agent-loop-types.js'; export declare function resolveEffectiveCaps(hardCaps?: AgentLoopHardCaps): { maxMessageCount: number; maxTotalTokens: number; maxConsecutiveTurnErrors: number; maxOutputContinuations: number; }; export declare function lastMessageNeedsToolFollowUpLlm(messages: Message[]): boolean; export declare function correctionTextForTurnError(err: unknown): string; export declare function runAgentLoop(params: AgentLoopParams): EventStream; //# sourceMappingURL=agent-loop.d.ts.map