/** * GLM API Client * Handles communication with GLM API including streaming and retry logic */ import { GlmConfig, GlmMessage, GlmApiResponse } from './types.js'; /** * GLM API Client * Supports both streaming and non-streaming code generation */ export declare class GlmClient { readonly config: GlmConfig; constructor(config: GlmConfig); /** * Generate code completion (non-streaming) */ generateCompletion(options: { messages: GlmMessage[]; temperature?: number; maxTokens?: number; }): Promise; /** * Generate code completion with streaming * Yields content chunks as they arrive */ generateCompletionStream(options: { messages: GlmMessage[]; temperature?: number; maxTokens?: number; }): AsyncGenerator; /** * Make raw API call and return Response object */ private callApiRaw; /** * Make API call and return parsed response */ private callApi; }