export declare const MCP_DEFAULT_DAEMON_URL = "http://127.0.0.1:7456";
export interface ResolveMcpDaemonUrlOptions {
    /** Value passed via `--daemon-url`. Empty string is treated as unset. */
    flagUrl?: string | null;
    /** Defaults to `process.env`; injected for tests. */
    env?: NodeJS.ProcessEnv;
    /** IPC discovery timeout. Short by default so an absent daemon does not stall MCP startup. */
    timeoutMs?: number;
}
/**
 * Resolve the daemon HTTP base URL for `od mcp`.
 *
 * Spawn order: explicit `--daemon-url` flag, `OD_DAEMON_URL` env, then
 * a STATUS roundtrip to the sidecar IPC socket the running daemon
 * already publishes (`/tmp/open-design/ipc/<namespace>/daemon.sock`).
 * Falls back to the legacy default for direct `od` launches that do
 * not run as a sidecar. Discovery means the install snippet never has
 * to bake a port: every spawn rediscovers the live URL, so an
 * ephemeral daemon port (tools-dev, packaged) cannot invalidate a
 * previously-installed MCP client config.
 */
export declare function resolveMcpDaemonUrl(options?: ResolveMcpDaemonUrlOptions): Promise<string>;
