/**
 * Path to the shared MCP sidecar. Same JS that claude-code uses — codex
 * just talks to it over a different transport (stdio either way; the
 * difference is who launches it). Kept in claude-code/ to avoid copying
 * 700 lines.
 */
export declare const CODEX_MCP_SIDECAR_PATH: string;
export interface CodexMcpEnvInput {
    sockPath: string;
    runId: string;
    /** Override sidecar path for tests. */
    sidecarPath?: string;
    /** Override node binary for tests. Production uses process.execPath. */
    nodeBinary?: string;
}
/**
 * Build the `-c` argument list that registers the imhub MCP server inline
 * for one `codex exec` invocation. Returns a flat array suitable for
 * splicing into the codex argv (each `-c` and its key=value are separate
 * argv entries — codex's clap parser requires it).
 *
 * Example output (formatted):
 *   -c mcp_servers.imhub.command="/usr/bin/node"
 *   -c mcp_servers.imhub.args=["/path/to/mcp-approval-server.js"]
 *   -c mcp_servers.imhub.env={IMHUB_APPROVAL_SOCK="/tmp/foo.sock",IMHUB_RUN_ID="abc-123"}
 */
export declare function buildCodexMcpCliArgs(input: CodexMcpEnvInput): string[];
//# sourceMappingURL=build-mcp-cli-args.d.ts.map