/** * MiniMax Adapter-local configuration (DESIGN.md §12 — P2-04). * * Reads MiniMax credentials and endpoints from the injected environment. * This module is the Adapter-local companion to the SDK client; MiniMax * environment names intentionally do NOT appear in shared `lib/config.ts` * (that module remains Z.AI-only). No credential is persisted or read * from shared configuration. * * Resolution rules: * - `MINIMAX_API_KEY`: required, non-empty after trim. Whitespace-only * is invalid, not absent. * - `MINIMAX_REGION`: optional; undefined defaults to `global`. An * empty value is invalid, not absent. Must be exactly `global` or * `cn`. * - Region URLs: `global` -> `https://api.minimax.io`, * `cn` -> `https://api.minimaxi.com`. * - `MINIMAX_BASE_URL`: optional override; must be an absolute HTTPS * URL. An empty value is invalid. Exactly one trailing slash is * removed. Overrides the region URL for every SDK operation. */ export interface MiniMaxConfig { readonly apiKey: string; readonly region: "global" | "cn"; readonly baseUrl: string; } /** * Load and validate MiniMax configuration from the injected environment. * Throws a normalized {@link ConfigurationError} for any invalid value. */ export declare function loadMiniMaxConfig(env: NodeJS.ProcessEnv): MiniMaxConfig; //# sourceMappingURL=config.d.ts.map