import { type ConfigScope, type FileServer, type ServerConfig } from "./config.js"; export declare const IMPORT_USAGE = "Usage: /mcp import --scope global|project . Select and confirm servers interactively; no connections are opened."; export declare const MAX_IMPORT_BYTES: number; export declare const MAX_IMPORT_SERVERS = 100; export declare const validImportName: (name: string) => boolean; export interface ImportCandidate { /** Invalid names are never displayed verbatim, but can be replaced in the picker. */ name?: string; label: string; transport: "stdio" | "HTTP" | "unsupported"; /** The entry that is saved to `mcp.json`. */ definition?: FileServer; /** The normalized entry, for validation and previews. */ config?: ServerConfig; problem?: string; escapedLiterals: boolean; group?: string; } export interface ImportSource { format: "json" | "codex"; candidates: ImportCandidate[]; ignoredTopLevel: number; groups?: string[]; } export declare function parseImportCommand(input: string): { scope: ConfigScope; path: string; }; /** Detect the file syntax, then adapt known MCP sections without loading client settings. */ export declare function parseImportSource(text: string): ImportSource; /** Read a bounded snapshot of an explicitly named regular file, never a URL or stream. */ export declare function readImportSource(path: string, cwd: string, signal?: AbortSignal): Promise; /** Resolve for validation only. Never save resolved secrets or expose validation errors. */ export declare function validateImportCandidate(candidate: ImportCandidate, cwd: string): string | undefined; export declare function importPreview(candidate: ImportCandidate, problem?: string): string;