export declare const TELEGRAM_CHANNEL_SERVER_NAME = "telegram-channel"; /** The single tool a ringfenced public telegram 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 TELEGRAM_CHANNEL_REPLY_TOOL = "mcp__telegram-channel__reply"; export interface TelegramChannelMcpParams { sessionId: string; /** The telegram sender this session serves (the channel server's wire key). */ senderId: 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; /** 'public' frames the channel server's instructions + reply-tool copy for an * anonymous visitor; omitted/'admin' keeps the operator framing. Carried to * the server as TG_CHANNEL_ROLE. */ role?: 'admin' | 'public'; } export interface TelegramChannelMcpServerEntry { command: string; args: string[]; env: Record; } export declare function buildTelegramChannelMcpServers(p: TelegramChannelMcpParams): Record; /** Argv that activates the channel server as a development channel. */ export declare function telegramChannelDevChannelsArgv(): 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 telegramChannelMcpConfigPath(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 buildTelegramChannelArgv(mcpConfigPath: string): string[]; //# sourceMappingURL=telegram-channel-mcp.d.ts.map