import fsPromises from "node:fs/promises";
import type { McpFileSpec, McpSpawnConfig } from "../types.js";
type McpFileSystem = Pick<typeof fsPromises, "lstat" | "mkdir" | "readFile" | "writeFile" | "rm">;
export declare function mergeMcpFileContent(existing: string | undefined, addition: Record<string, unknown>): string;
export declare function applyMcpFile(spec: McpFileSpec, servers: McpSpawnConfig, cwd: string, fs?: McpFileSystem): Promise<() => Promise<void>>;
export {};
