export interface AntigravityMcpPayload { mcpServers?: Record; servers?: Record; [key: string]: unknown; } /** * Resolve the absolute filesystem path for the legacy global Antigravity MCP configuration file. * * Uses the `AGENTS_ANTIGRAVITY_MCP_PATH` environment variable when set and non-empty; otherwise * returns an OS-specific default location (macOS, Windows with `APPDATA` fallback, or XDG/`~/.config` for other platforms). * * @returns Absolute path to the legacy global Antigravity MCP JSON file (`mcp.json`). */ export declare function getLegacyAntigravityGlobalMcpPath(): string; export declare function readAntigravityMcp(pathToRead: string): Promise; export declare function writeAntigravityMcp(pathToWrite: string, payload: AntigravityMcpPayload): Promise; /** * Normalize an Antigravity MCP payload to the current shape by ensuring server mappings are exposed under `mcpServers` and removing legacy `servers` and `inputs` properties. * * @param payload - The MCP payload that may use current (`mcpServers`) or legacy (`servers`) server keys * @returns A payload object with `mcpServers` containing the chosen server mapping and without legacy `servers` or `inputs` properties */ export declare function normalizeAntigravityMcpPayload(payload: AntigravityMcpPayload): AntigravityMcpPayload;