/**
 * opencode target.
 *
 *   - MCP server entry to `~/.config/opencode/opencode.jsonc` (global,
 *     XDG-style on EVERY platform, Windows included — see below) or
 *     `./opencode.jsonc` (local). Falls back to `opencode.json` when a
 *     `.json` file already exists; defaults new installs to `.jsonc`
 *     because that's what opencode itself creates on first run.
 *
 *     opencode resolves its config dir with the `xdg-basedir` package
 *     (sst/opencode `packages/core/src/global.ts`): `XDG_CONFIG_HOME`
 *     if set, else `~/.config` — unconditionally, on all platforms. It
 *     never reads `%APPDATA%`; that layout belonged to the discontinued
 *     Go fork. We previously wrote there on Windows, so opencode never
 *     saw the entry (#535) — install/uninstall now also sweep a stale
 *     codegraph entry out of the legacy `%APPDATA%/opencode` location.
 *   - Instructions to `~/.config/opencode/AGENTS.md` (global) or
 *     `./AGENTS.md` (local). opencode reads AGENTS.md for agent
 *     instructions — same convention Codex CLI uses.
 *   - No permissions concept.
 *
 * Config shape uses OpenCode 2's native wrapper (also read by 1.18+):
 *   {
 *     "$schema": "https://opencode.ai/config.json",
 *     "mcp": {
 *       "servers": {
 *         "codegraph": {
 *           "type": "local",
 *           "command": [...],
 *           "disabled": false,
 *           "codemode": false
 *         }
 *       }
 *     }
 *   }
 *
 * OpenCode 2 puts servers under `mcp.servers` (not `mcp.<name>`), uses
 * `disabled` instead of `enabled`, and defaults tools through Code Mode —
 * `codemode: false` keeps `codegraph_explore` on the provider's native
 * tool list (#1698). Pre-#1698 installs wrote the v1 `mcp.codegraph` +
 * `enabled` shape; re-install migrates, uninstall removes either.
 *
 * Reads + writes go through `jsonc-parser` so any `//` and `/* *\/`
 * comments the user has added to their `.jsonc` survive idempotent
 * re-runs.
 */
import { AgentTarget } from './types';
export declare const opencodeTarget: AgentTarget;
//# sourceMappingURL=opencode.d.ts.map