export interface ErnieMessage { role: "user" | "assistant"; content: string; } export interface ErnieChatBody { messages: ErnieMessage[]; stream?: boolean; system?: string; } export declare class ErnieAPI { static instances: Map; private clientId?; private clientSecret?; private accessToken?; private expiresIn?; constructor(clientId: string, clientSecret: string); static getInstance(clientId: string, clientSecret: string): Promise; private initialize; private fetchAccessToken; request(params: { method: "GET" | "POST" | "PUT" | "DELETE"; url: string; data?: any; }): Promise; }