import BaseSDK from '../base-sdk'; import { QelosSDKOptions } from '../types'; import { IChatCompletionOptions, IChatCompletionResponse, ISSEStreamProcessor } from '.'; export default class ChatSDK extends BaseSDK { private relativePath; constructor(options: QelosSDKOptions); /** * Create a chat completion without a thread */ chat(integrationId: string, options: IChatCompletionOptions): Promise; /** * Create a chat completion with a thread */ chatInThread(integrationId: string, threadId: string, options: IChatCompletionOptions): Promise; /** * Create a streaming chat completion without a thread * Returns a ReadableStream for Server-Sent Events */ stream(integrationId: string, options: IChatCompletionOptions): Promise>; /** * Create a streaming chat completion with a thread * Returns a ReadableStream for Server-Sent Events */ streamInThread(integrationId: string, threadId: string, options: IChatCompletionOptions): Promise>; /** * Helper method to parse Server-Sent Events stream */ parseSSEStream(stream: ReadableStream): ISSEStreamProcessor; }