/** * MiniMax SDK client factory (DESIGN.md §12 — P2-04). * * This is the ONLY module that imports `mmx-cli/sdk`. The Adapter and * registry consume {@link createMiniMaxSdk} plus the injectable * {@link MiniMaxSdkConstructor} / {@link MiniMaxSdkPort} types declared * in `providers/types.ts`, so the transitional SDK never leaks past * this boundary. * * The characterized SDK reads its own config directory during * construction (it calls `getConfigDir()`, which honours * `MMX_CONFIG_DIR`). To prevent the SDK from touching the user's real * `~/.mmx` state, the factory temporarily points `MMX_CONFIG_DIR` at a * unique nonexistent path for the synchronous construction call only, * then restores the prior value in `finally`. The temporary directory * is NEVER created on disk. */ import type { MiniMaxSdkConstructor, MiniMaxSdkPort } from "../types.js"; /** * Construct a MiniMax SDK port. The optional `constructor` lets tests * inject a fake; production omits it and uses the pinned `mmx-cli/sdk` * implementation. */ export declare function createMiniMaxSdk(options: { apiKey: string; region: "global" | "cn"; baseUrl: string; }, constructor?: MiniMaxSdkConstructor): MiniMaxSdkPort; //# sourceMappingURL=sdk-client.d.ts.map