import { a as RequestPlanBridge, i as RequestPermissionBridge, r as PermissionPromptBridge, t as AskUserBridge } from "../tools-DeZkIW3h.js"; //#region src/interactions/mcp-server.d.ts declare const DEFAULT_INTERACTION_MCP_SERVER_NAME = "tangle-interaction"; /** Build the full tool name that a runner uses for an MCP tool. */ declare function interactionMcpToolName(serverName: string, tool: string): string; interface InteractionMcpServerConfig { serverName?: string; onStop: () => void | Promise; permission?: PermissionPromptBridge; askUser?: AskUserBridge; requestPermission?: RequestPermissionBridge; requestPlan?: RequestPlanBridge; } /** * Per-execution loopback MCP server for questions, permissions, and plans. * * The server listens only on 127.0.0.1 and requires an ephemeral bearer token. */ declare class InteractionMcpServer { private readonly server; private readonly transport; private readonly onStop; private readonly lifecycle; private readonly requestSignal; private readonly activePostRequests; private httpServer?; private portValue; readonly serverName: string; readonly token: string; constructor(config: InteractionMcpServerConfig); get port(): number; get url(): string; start(): Promise; stop(): Promise; private operationSignal; private operationId; private requestGenerationId; } //#endregion export { DEFAULT_INTERACTION_MCP_SERVER_NAME, InteractionMcpServer, InteractionMcpServerConfig, interactionMcpToolName }; //# sourceMappingURL=mcp-server.d.ts.map