/**
 * `get_project_mcp_servers` / `set_project_mcp_servers` (senpi#6485): read and edit the session folder's project MCP
 * file over RPC, so a client that reaches the folder only through its engine edits MCP servers like a local one.
 *
 * Reading runs nothing, so trust does not gate it, and a file that does not parse is answered with `parseError`. A set
 * is one level deep: each patch entry replaces or (`null`) removes one server and every other key stays as stored, so a
 * rename is one atomic write. The candidate is checked with the MCP loader's own steps before anything is written, a
 * file that does not parse is never written over, and the write passes the per-write gates of `project-write-gate.ts`.
 */
import type { AgentSession } from "../../core/agent-session.ts";
import { type ProjectWriteRefusal } from "./project-write-gate.ts";
export interface RpcProjectMcpServers {
    cwd: string;
    /** The folder-relative path of the project MCP file. */
    path: string;
    exists: boolean;
    /** The servers as stored (placeholders unexpanded); `null` when the file is missing or does not parse. */
    mcpServers: Record<string, unknown> | null;
    parseError: string | null;
    /** Opaque version of the stored bytes; compare it, never parse it. */
    etag: string | null;
    projectTrusted: boolean;
}
export type ProjectMcpResult = {
    ok: true;
    data: RpcProjectMcpServers;
} | ProjectWriteRefusal;
export declare function getProjectMcpServers(session: AgentSession): Promise<ProjectMcpResult>;
export declare function setProjectMcpServers(session: AgentSession, patch: unknown, ifEtag: unknown): Promise<ProjectMcpResult>;
//# sourceMappingURL=project-mcp-commands.d.ts.map