import { BaseProvider } from './base'; import { LLMRequestPayload, LLMResponsePayload, ProviderConfig, ILogger, StreamDelta, StreamingOptions } from '../types'; /** * OpenAI-compatible provider * Works with OpenAI API, Novita, and other OpenAI-compatible endpoints */ export declare class OpenAIProvider extends BaseProvider { readonly id = "openai"; constructor(config: ProviderConfig, logger?: ILogger); generateChat(payload: LLMRequestPayload, config?: ProviderConfig): Promise; generateText(payload: LLMRequestPayload, config?: ProviderConfig): Promise; /** * Generate a streaming chat completion * Returns an async generator that yields StreamDelta objects */ generateChatStream(payload: LLMRequestPayload, config?: ProviderConfig, signal?: AbortSignal): AsyncGenerator; /** * Generate a streaming chat completion with callbacks * Processes the stream and returns the final accumulated response */ generateChatStreamWithCallbacks(payload: LLMRequestPayload, options: StreamingOptions, config?: ProviderConfig, signal?: AbortSignal): Promise; } //# sourceMappingURL=openai.d.ts.map