import { IStreamLogger } from './PSAgentLogger'; export declare class PSAI { private readonly token; private dimensions; private readonly baseUrl; private readonly log; private readonly clientid?; private readonly appToken?; private readonly userIdentifier?; constructor(token: string, baseUrl?: string, log?: IStreamLogger, appToken?: string, userIdentifier?: string); getDimensions(embeddingModel?: string): number; embedQuery(text: string, embeddingModel?: string, baseUrl?: string): Promise; embedDocuments(text: string[], embeddingModel?: string, baseUrl?: string): Promise; getModels(): Promise; private prepareMessages; llm(prompt: string, model?: string, systemmsg?: string, llm_config?: { presence_penalty?: number; frequency_penalty?: number; max_tokens?: number; temperature?: number; top_p?: number; enable_prompt_caching?: boolean; cache_system_prompt?: boolean; } & Record, transformCodexResponse?: boolean): Promise; llmStream(prompt: string, model?: string, systemmsg?: string, llm_config?: { presence_penalty?: number; frequency_penalty?: number; max_tokens?: number; temperature?: number; top_p?: number; enable_prompt_caching?: boolean; cache_system_prompt?: boolean; } & Record, transformCodexStream?: boolean): Promise; llmResponses(prompt: string, model?: string, systemmsg?: string, llm_config?: { max_tokens?: number; temperature?: number; top_p?: number; } & Record): Promise; llmResponsesStream(prompt: string, model?: string, systemmsg?: string, llm_config?: { max_tokens?: number; temperature?: number; top_p?: number; } & Record): Promise; static getServiceToken(options?: Record): Promise; /** * fetch access token by launching a local server to listen for the callback * @param options - baseUrl and appKey for authentication * @returns accessToken and refreshToken * @throws error if any required values are missing or if authentication fails */ static getAuthToken(options?: Record): Promise<{ accessToken: string; refreshToken: string; }>; static getLLMproxy({ headers, baseapiurl, }?: { headers?: Record; baseapiurl?: string; }): import("express-serve-static-core").Express; }