import type { jsonSchemaValidator } from "@modelcontextprotocol/sdk/validation/types.js"; import type { OpenClawConfig } from "../config/types.openclaw.js"; import type { SessionMcpRuntime, SessionMcpRuntimeManager } from "./pi-bundle-mcp-types.js"; type CreateSessionMcpRuntime = (params: Parameters[0] & { configFingerprint?: string; }) => SessionMcpRuntime; export declare function createBundleMcpJsonSchemaValidator(): jsonSchemaValidator; declare function resolveSessionMcpRuntimeIdleTtlMs(cfg?: OpenClawConfig): number; export declare function createSessionMcpRuntime(params: { sessionId: string; sessionKey?: string; workspaceDir: string; cfg?: OpenClawConfig; }): SessionMcpRuntime; declare function createSessionMcpRuntimeManager(opts?: { createRuntime?: CreateSessionMcpRuntime; now?: () => number; enableIdleSweepTimer?: boolean; idleSweepIntervalMs?: number; }): SessionMcpRuntimeManager; export declare function getSessionMcpRuntimeManager(): SessionMcpRuntimeManager; export declare function getOrCreateSessionMcpRuntime(params: { sessionId: string; sessionKey?: string; workspaceDir: string; cfg?: OpenClawConfig; }): Promise; export declare function disposeSessionMcpRuntime(sessionId: string): Promise; export declare function retireSessionMcpRuntime(params: { sessionId?: string | null; reason: string; onError?: (error: unknown, sessionId: string, reason: string) => void; }): Promise; export declare function retireSessionMcpRuntimeForSessionKey(params: { sessionKey?: string | null; reason: string; onError?: (error: unknown, sessionId: string, reason: string) => void; }): Promise; export declare function disposeAllSessionMcpRuntimes(): Promise; export declare const __testing: { createSessionMcpRuntimeManager: typeof createSessionMcpRuntimeManager; resetSessionMcpRuntimeManager(): Promise; getCachedSessionIds(): string[]; resolveSessionMcpRuntimeIdleTtlMs: typeof resolveSessionMcpRuntimeIdleTtlMs; }; export {};