/** * Meridian setup — OpenCode plugin configuration. * * Manages the meridian plugin entry in ~/.config/opencode/opencode.json * (or the platform-equivalent path). Called by: * - `meridian setup` — writes the plugin entry * - `meridian` startup — warns if plugin is missing * - `GET /health` — reports plugin status */ /** * Resolve the OpenCode global config file path. * Respects OPENCODE_CONFIG_DIR and XDG_CONFIG_HOME env vars. */ export declare function findOpencodeConfigPath(): string; /** * Resolve the absolute path to plugin/meridian.ts from any entry point. * Works whether called from bin/cli.ts (dev) or dist/cli.js (installed). */ export declare function findPluginPath(fromUrl: string): string; /** * Returns true if the meridian plugin is already configured in the * OpenCode global config. Returns false if config doesn't exist or * plugin is missing. */ export declare function checkPluginConfigured(configPath?: string): boolean; export interface SetupResult { configPath: string; pluginPath: string; alreadyConfigured: boolean; removedStale: string[]; created: boolean; } /** * Configure the meridian plugin in ~/.config/opencode/opencode.json. * * - Creates the config file if it doesn't exist * - Removes stale meridian plugin entries from previous installs * - Adds the current plugin path * - Leaves all other plugins untouched */ export declare function runSetup(pluginPath: string, configPath?: string): SetupResult; //# sourceMappingURL=setup.d.ts.map