import type { ApiResponse, StreamChunk } from '../types/api.js'; export interface ClientOptions { apiKey: string; baseUrl: string; timeout: number; requestId?: string; verbose?: boolean; logDir?: string; } export declare class ZaiClient { private readonly apiKey; private readonly baseUrl; private readonly timeout; private readonly requestId?; private readonly verbose; private readonly logDir?; constructor(options: ClientOptions); post(path: string, body: object): Promise>; get(path: string, params?: Record): Promise>; upload(path: string, file: string | Buffer, fields?: Record): Promise>; stream(path: string, body: object): AsyncGenerator; private request; private buildUrl; private throwApiError; private logRequest; private logResponse; private logError; private writeLog; private writeVerbose; }