import { IMcpServerConfiguration } from "./mcpPlatformTypes.js"; export interface ICopilotLocalMcpServerConfiguration { /** The canonical stdio type. The Copilot CLI also reads the legacy `local` alias, but other readers may not. */ type: "stdio"; command: string; args: string[]; tools: string[]; env?: Record; cwd?: string; } export interface ICopilotRemoteMcpServerConfiguration { type: "http" | "sse"; url: string; tools: string[]; headers?: Record; oauthClientId?: string; } /** The server format shared by Copilot CLI configuration and the SDK. */ export type ICopilotMcpServerConfiguration = ICopilotLocalMcpServerConfiguration | ICopilotRemoteMcpServerConfiguration; export declare function toCopilotMcpServerConfiguration(config: IMcpServerConfiguration, cwd?: string | undefined): ICopilotMcpServerConfiguration; /** Reads supported servers without requiring CLI-owned fields to be known to VS Code. */ export declare function fromCopilotMcpServerConfiguration(value: unknown): IMcpServerConfiguration | undefined;