import { SERVER_OWNED_ABORT_REASONS, clientAbortReason } from "./abort-reasons.js"; import { type EngineMessage } from "./engine/types.js"; export { RUN_BUDGET_EXHAUSTED_ERROR_CODE, RUN_BUDGET_EXHAUSTED_MESSAGE, RUN_CONTINUATION_LIMIT_EXHAUSTED_MESSAGE, } from "./run-errors.js"; import { runAgentLoop, AGENT_INTERNAL_CONTINUATION_CHECKPOINT_PROMPT, type AgentLoopContinuationReason } from "./production-agent.js"; import type { ResolveRunSoftTimeoutOptions, RunChunkControl } from "./run-manager.js"; export { AGENT_INTERNAL_CONTINUATION_CHECKPOINT_PROMPT }; export declare function appendDurableContinuationContext(messages: EngineMessage[], reason: AgentLoopContinuationReason, threadId: string, turnId?: string): Promise; export declare const MAX_BACKGROUND_RATE_LIMIT_CONTINUATIONS = 3; export declare const BACKGROUND_RATE_LIMIT_CONTINUATION_DELAY_MS = 2000; export { SERVER_OWNED_ABORT_REASONS, clientAbortReason }; export declare class AgentLoopAbortedError extends Error { readonly usage: Awaited>; constructor(usage: Awaited>); } export declare function runAgentLoopDirectWithSoftTimeout(opts: Parameters[0], softTimeoutMs?: number, timeoutOptions?: ResolveRunSoftTimeoutOptions, control?: RunChunkControl, onUsage?: (usage: Awaited>) => void): Promise>>;