import type { MCPServerConfig } from "./types.js";
import type { MCPScope } from "./store.js";
/** Zero-dep discriminated-union result for expected parse failures. */
export type Result<T, E> = {
    ok: true;
    value: T;
} | {
    ok: false;
    error: E;
};
export interface ParsedAddCommand {
    config: MCPServerConfig;
    /** Requested scope, if the input carried a --scope flag. */
    scope?: MCPScope;
}
/**
 * Parse a pasted `claude mcp add …` / `ezcoder mcp add …` line (or just the
 * args after `add`) into an MCPServerConfig + requested scope.
 *
 * Grammar matches Claude Code:
 *   add [--transport t] [--env K=V]… [--header "K: V"]… [--scope s] <name> -- <command> [args…]
 *   add --transport http|sse <name> <url> [--header "K: V"]…
 */
export declare function parseMcpAddCommand(input: string): Result<ParsedAddCommand, string>;
//# sourceMappingURL=parse-add-command.d.ts.map