import type { AgentModelBinding, AgentRuntimeOptions, AgentRuntimeRef, AgentSandboxPolicy, AttachedAgentDefinition } from '../types.js'; export type AgentRuntimeExecutor = NonNullable['current']>; export type AgentRuntimeScope = { readonly runtimes: WeakMap, AgentRuntimeExecutor>; }; export type AttachedAgentRuntimeShutdown = { shutdown(): Promise; }; export declare function createAgentRuntimeScope(): AgentRuntimeScope; export declare function bindAgentRuntimeScope(owner: object, scope: AgentRuntimeScope): void; export declare function initializeAttachedAgentRuntimes(scope: AgentRuntimeScope, definitions: readonly AttachedAgentDefinition[], aiOptions?: AgentRuntimeOptions>): Promise; /** * Resolve the sandbox an attached agent should run with. * * Sandboxing is opt-in per agent: an explicit `enabled: false` disables it even * when a shared `ai.sandbox` is configured, a policy-provided adapter takes * precedence over the shared sandbox, and agents without a sandbox policy fall * back to the shared `ai.sandbox`. */ export declare function resolveAttachedAgentSandbox(policy: AgentSandboxPolicy | undefined, runtimeSandbox: unknown): unknown; export declare function getScopedAgentRuntime(scope: AgentRuntimeScope, definition: AttachedAgentDefinition): AgentRuntimeExecutor; export declare function getBoundAgentRuntime(owner: object | undefined, definition: AttachedAgentDefinition): AgentRuntimeExecutor | undefined; //# sourceMappingURL=scopedRuntime.d.ts.map