import { AnthropicDirectProvider } from '../agent/providers/index.js'; import { type WiredExecutors } from '../agent/session/wire-executors.js'; import { BackgroundAgentRegistry } from '../agent/background-registry.js'; import { McpManager } from '../agent/mcp/index.js'; import { WorkspaceStore } from '../agent/workspace/index.js'; import { MemoryStore } from '../agent/memory/index.js'; import type { AgentSession } from '../agent/session/agent-session.js'; import type { AgentConfig } from '../agent/types.js'; import type { TraceWriter } from '../agent/trace/index.js'; export interface WebSessionWiring { provider: AnthropicDirectProvider; executors: WiredExecutors; traceWriter: TraceWriter | undefined; systemPrompt: string | undefined; systemPromptSource: string | undefined; backgroundRegistry: BackgroundAgentRegistry; mcpManager: McpManager | undefined; memoryStore: MemoryStore; workspaceStore: WorkspaceStore; drainSubagents: AgentConfig['drainSubagents']; } export interface WireWebSessionOptions { model: string; apiKey: string | undefined; cwd: string; rawPrompt: string | undefined; rawPromptSource: string | undefined; } export declare function wireWebSession(opts: WireWebSessionOptions): Promise; export interface WebSessionWiringInternal extends WebSessionWiring { __bindSession: (s: AgentSession) => void; }