import { type MCPScope, type MCPServerConfig } from "../core/mcp/index.js"; /** One wire row for the MCP list: a server config joined with its live status. */ export interface McpWireRow { name: string; scope: MCPScope; ok: boolean; toolCount: number; error?: string; kind: "stdio" | "http"; summary: string; /** True when the server needs an interactive OAuth login before it connects. */ requiresAuth?: boolean; } /** 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; }>;