import { i as OpenClawConfig } from "../types.openclaw-fYj4Ft14.js"; import { n as PluginManifestRegistry } from "../manifest-registry-QVxxPOAD.js"; import { a as SessionMcpRuntimeManager, i as SessionMcpRuntime } from "../agent-bundle-mcp-types-CsrdKR7v.js"; import { jsonSchemaValidator } from "@modelcontextprotocol/sdk/validation/types.js"; //#region src/agents/agent-bundle-mcp-runtime.d.ts type CreateSessionMcpRuntime = (params: Parameters[0] & { configFingerprint?: string; }) => SessionMcpRuntime; declare function createBundleMcpJsonSchemaValidator(): jsonSchemaValidator; declare function setBundleMcpCatalogListTimeoutMsForTest(timeoutMs?: number): void; /** * Loads enabled MCP config metadata for a session without creating runtimes, * connecting transports, or issuing MCP tools/list requests. */ declare function resolveSessionMcpConfigSummary(params: { workspaceDir: string; cfg?: OpenClawConfig; manifestRegistry?: Pick; }): { fingerprint: string; serverNames: string[]; }; /** Returns the session MCP config fingerprint with the same no-runtime/no-connect contract as the summary helper. */ declare function resolveSessionMcpConfigFingerprint(params: { workspaceDir: string; cfg?: OpenClawConfig; manifestRegistry?: Pick; }): string; declare function resolveSessionMcpRuntimeIdleTtlMs(cfg?: OpenClawConfig): number; declare function createSessionMcpRuntime(params: { sessionId: string; sessionKey?: string; workspaceDir: string; cfg?: OpenClawConfig; manifestRegistry?: Pick; }): SessionMcpRuntime; declare function createSessionMcpRuntimeManager(opts?: { createRuntime?: CreateSessionMcpRuntime; now?: () => number; enableIdleSweepTimer?: boolean; idleSweepIntervalMs?: number; }): SessionMcpRuntimeManager; declare function getSessionMcpRuntimeManager(): SessionMcpRuntimeManager; declare function getOrCreateSessionMcpRuntime(params: { sessionId: string; sessionKey?: string; workspaceDir: string; cfg?: OpenClawConfig; }): Promise; /** Looks up an existing session MCP runtime without creating it or connecting transports. */ declare function peekSessionMcpRuntime(params: { sessionId?: string | null; sessionKey?: string | null; }): SessionMcpRuntime | undefined; declare function disposeSessionMcpRuntime(sessionId: string): Promise; declare function retireSessionMcpRuntime(params: { sessionId?: string | null; reason: string; onError?: (error: unknown, sessionId: string, reason: string) => void; }): Promise; declare function retireSessionMcpRuntimeForSessionKey(params: { sessionKey?: string | null; reason: string; onError?: (error: unknown, sessionId: string, reason: string) => void; }): Promise; declare function disposeAllSessionMcpRuntimes(): Promise; declare const testing: { createSessionMcpRuntimeManager: typeof createSessionMcpRuntimeManager; resetSessionMcpRuntimeManager(): Promise; getCachedSessionIds(): string[]; setBundleMcpCatalogListTimeoutMsForTest: typeof setBundleMcpCatalogListTimeoutMsForTest; resolveSessionMcpRuntimeIdleTtlMs: typeof resolveSessionMcpRuntimeIdleTtlMs; }; //#endregion export { testing as __testing, testing, createBundleMcpJsonSchemaValidator, createSessionMcpRuntime, disposeAllSessionMcpRuntimes, disposeSessionMcpRuntime, getOrCreateSessionMcpRuntime, getSessionMcpRuntimeManager, peekSessionMcpRuntime, resolveSessionMcpConfigFingerprint, resolveSessionMcpConfigSummary, retireSessionMcpRuntime, retireSessionMcpRuntimeForSessionKey };