import type { OrchestrationInput } from "../types.js"; import { type DurableSessionRuntime } from "./state.js"; export declare const CURRENT_ORCHESTRATION_VERSION = "1.0.79"; /** For top-level named-agent sessions, merge the agent definition's tools into the session config. */ export declare function resolveTopLevelAgentConfig(runtime: DurableSessionRuntime): Generator; /** * Build the runtime, install versioned tracing, restore the timer state from * continueAsNew, run startup gates (creation policy + agent config resolution), * and trace the start banner. Returns a runtime ready for `runLoop`. * * If a startup gate sets `runtime.state.orchestrationResult`, the caller should * return that value immediately and skip the loop. */ export declare function createRuntime(ctx: any, input: OrchestrationInput, versions: { currentVersion: string; latestVersion: string; }): Generator; /** * Flat event loop: drain the durable message queue + timer fires into the KV * FIFO, decide what to dispatch next, and continue-as-new when the loop has no * more buffered work. * * Each iteration is one of: * - drain() pulls events from the durable queue (blocking when idle). * - decide() pops one unit of work (tool action, prompt, FIFO item, digest). * - if neither produced work and no timer/input is pending, CAN. * * Hard caps on this execution force a CAN to keep history size bounded. */ export declare function runLoop(runtime: DurableSessionRuntime): Generator; //# sourceMappingURL=runtime.d.ts.map