export declare const WEBCHAT_CHANNEL_SERVER_NAME = "webchat-channel"; /** Task 756 — the single tool a ringfenced public webchat session is allowed. * Under dontAsk (fail-closed) the spawn's `--allowed-tools` must name it, or * the agent cannot reply; nothing else is exposed. */ export declare const WEBCHAT_CHANNEL_REPLY_TOOL = "mcp__webchat-channel__reply"; export interface WebchatChannelMcpParams { sessionId: string; /** The webchat conversation key this session serves. */ key: string; /** Loopback base URL of the gateway in the UI process. */ gatewayUrl: string; /** Absolute path to the built channel server entrypoint (dist/server.js). */ serverPath: string; /** Absolute path to the node binary that runs the channel server. On darwin * the launchd server PATH excludes an nvm node, so a bare `node` command * fails to spawn and the channel never boots (Task 1402); callers pass the * installer-resolved NODE_BIN. */ nodeBin: string; /** Task 756 — 'public' frames the channel server's instructions + reply-tool * copy for an anonymous visitor; omitted/'admin' keeps the operator framing * (Task 772). Carried to the server as WEBCHAT_CHANNEL_ROLE. */ role?: 'admin' | 'public'; } export interface WebchatChannelMcpServerEntry { command: string; args: string[]; env: Record; } export declare function buildWebchatChannelMcpServers(p: WebchatChannelMcpParams): Record; /** Argv that activates the channel server as a development channel. */ export declare function webchatChannelDevChannelsArgv(): string[]; /** Per-session mcp-config file path. The sessionId is sanitised to the * filename-safe charset so a hostile/odd id can't escape `dir`. Pure — the * caller writes the file. Shared by the gateway and resume paths so both * produce the identical path. */ export declare function webchatChannelMcpConfigPath(sessionId: string, dir: string): string; /** Full argv fragment that attaches + activates the channel server: the * per-session `--mcp-config` followed by the development-channels flag. */ export declare function buildWebchatChannelArgv(mcpConfigPath: string): string[]; //# sourceMappingURL=webchat-channel-mcp.d.ts.map