import type { AdapterConfig, ChatMessage, ToolDefinition, ToolCall, Usage } from "./types.js"; export interface ChatRequest { model: string; messages: ChatMessage[]; tools?: ToolDefinition[]; tool_choice?: "auto" | "none" | { type: "function"; function: { name: string; }; }; temperature?: number; max_tokens?: number; top_p?: number; stream?: boolean; /** Anything MiniMax supports but isn't in the OpenAI type. */ extra?: Record; } export interface ChatResponse { id: string; model: string; content: string | null; toolCalls: ToolCall[]; reasoning: string | null; usage: Usage; finishReason: string; raw: unknown; } export interface StreamChunk { delta: { content?: string; reasoning?: string; toolCalls?: ToolCall[]; }; finishReason: string | null; usage: Usage | null; } export declare class MiniMaxClient { private readonly sdk; readonly config: AdapterConfig; constructor(config: AdapterConfig); chat(req: ChatRequest): Promise; stream(req: ChatRequest): AsyncGenerator; /** Validate credentials by listing models. */ validate(): Promise<{ ok: boolean; models: string[]; message: string; }>; } //# sourceMappingURL=client.d.ts.map