import { type MCPServerConfig } from "@kenkaiiii/gg-engine/internal/core/mcp/index.js"; import type { McpServerRow as McpWireRow } from "@kenkaiiii/gg-protocol"; export type { McpWireRow }; /** A short transport summary for display (URL for http/sse, command+args for stdio). */ export declare function mcpRowSummary(config: MCPServerConfig): string; /** Load + connect every server, returning one wire row per server. Mirrors the * CLI dashboard's buildRows (connectAllDetailed, then dispose). Empty list * short-circuits before spawning any stdio process / opening any HTTP conn. * Project-scope servers run repo-controlled commands, so unless the user * trusts them (trustProjectMcpServers) they are reported blocked WITHOUT * being connected — even a status probe would spawn the process. */ export declare function buildMcpRows(cwd: string, settingsFile: string): Promise; /** Probe a single server's connection before persisting it. Never throws — a * failed probe returns ok:false with a human-readable error so the config can * still be saved. Mirrors the CLI's probeServer. */ export declare function probeMcp(config: MCPServerConfig): Promise<{ ok: boolean; toolCount: number; error?: string; requiresAuth?: boolean; }>;