/** * MiniMax Coding Plan direct transport (DESIGN.md §12, P4-02). * * The pinned `mmx-cli/sdk` 1.0.16 does not preserve an arbitrary * configured host for the Coding Plan endpoints. This module performs * direct POSTs against the two `/v1/coding_plan/*` endpoints with an * `Authorization: Bearer ` header so `MINIMAX_BASE_URL` is * authoritative. There is NO internal retry — shared execution owns * retry policy. Fetch and timer are injectable for tests. * * Mirrors `providers/minimax/quota-client.ts` line-for-line in * structure; that module is the canon direct-transport pattern. The * `MiniMaxTransportDeps` shape is the renamed `MiniMaxQuotaClientDeps` * (same four fields — rename, not superset). * * Boundary rules (ARCHITECTURE.md §2): * - May import Adapter-local config and normalized errors. * - May import `ProviderQuotaFetch` from `providers/types.ts`. * - Must NOT import `mmx-cli/sdk`, command presentation, or another * Provider's Adapter. * - Must NOT perform field normalization — the Adapter owns that. */ import type { MiniMaxConfig } from "./config.js"; import type { ProviderQuotaFetch } from "../types.js"; /** Injectable transport dependencies (renamed from `MiniMaxQuotaClientDeps`). */ export interface MiniMaxTransportDeps { readonly fetch?: ProviderQuotaFetch; readonly setTimeout?: typeof setTimeout; readonly clearTimeout?: typeof clearTimeout; readonly env?: NodeJS.ProcessEnv; } /** Raw MiniMax search response shape (search endpoint). */ export interface MiniMaxRawSearchResponse { organic?: unknown[]; related_searches?: unknown[]; base_resp?: unknown; } /** Raw MiniMax VLM response shape (vision-language endpoint). */ export interface MiniMaxRawVlmResponse { content?: unknown; base_resp?: unknown; } export declare function resolveTimeoutMs(env: NodeJS.ProcessEnv): number; /** * Perform ONE POST against the MiniMax Coding Plan search endpoint. No * retry; no response body in public errors. Returns the parsed JSON * body (raw; the Adapter post-processes into normalized search * sources). */ export declare function fetchMiniMaxSearch(config: MiniMaxConfig, query: string, deps?: MiniMaxTransportDeps): Promise; /** * Perform ONE POST against the MiniMax Coding Plan VLM endpoint. No * retry; no response body in public errors. Returns the parsed JSON * body (raw; the Adapter post-processes the content field). * * `image` is the pre-resolved data URI produced by the Adapter's * `convertToDataUri` step. The transport does NOT perform any * data-URI conversion. */ export declare function fetchMiniMaxVlm(config: MiniMaxConfig, image: string, prompt: string, deps?: MiniMaxTransportDeps): Promise; //# sourceMappingURL=coding-plan-client.d.ts.map