import { MCPServerConfiguration } from "../config/models.js"; import type { Environment } from "../env.js"; import { type KeyValuePairObject } from "properties-file"; /** * Connection id synthesized by the env-var path. The leading underscore marks * it as machine-synthesized rather than user-chosen; it is the canonical * zero-config id the YAML loader must adopt when the env-var path is retired. * * Distinct from the test factories' {@link DEFAULT_CONNECTION_ID} (`"default"`, * exported from `tests/factories/runtime.ts`): same constant name, different * value, different world. This one is the production env-var synthesis; that * one is an arbitrary fixture id. The values differ on purpose — do not unify. * * 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_ID = "_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