import { MCPServerConfiguration } from "../config/models.js"; import type { Environment } from "../env.js"; import { type KeyValuePairObject } from "properties-file"; /** * Connection name synthesized by the env-var path. Chosen as `"_default"` so * the YAML loader can reuse the same name as the zero-config fallback. * * Fallback contract: with no CLI args and no env vars, this module produces * `connections: { _default: { type: "direct" } }` alongside the * always-present `server` block. This yields a config with no service * blocks, so only connection-agnostic tools are enabled. When the env-var * path is retired, the YAML loader must preserve this connection shape. */ export declare const DEFAULT_CONNECTION_NAME = "_default"; /** CLI flags that may override values in the env-var config path. */ export interface EnvPathCliOverrides { disableAuth?: boolean; allowedHosts?: string[]; kafkaConfig?: KeyValuePairObject; oauth?: boolean; ccloudEnv?: "devel" | "stag" | "prod"; } /** * Constructs a fully-resolved MCPServerConfiguration from environment variables and optional * CLI flag overrides. Extends {@link buildConfigFromEnv} by folding in the three CLI flags that * are only valid on the env-var path (`--disable-auth`, `--allowed-hosts`, `--kafka-config-file`), * so that the returned config needs no further patching by the caller. * * @param env - Environment variables (same contract as {@link buildConfigFromEnv}) * @param overrides - CLI flag values to merge on top of the env-var-derived config */ export declare function buildConfigFromEnvAndCli(env: Environment, overrides?: EnvPathCliOverrides): MCPServerConfiguration; //# sourceMappingURL=env-config.d.ts.map