/**
 * OpenAI-compatible API provider — works with any service that speaks
 * the OpenAI chat completions API: OpenAI, Groq, Together, Ollama, etc.
 *
 * No SDK dependency. Uses only Node.js native fetch + SSE parsing.
 * Converts OpenAI's delta format to the canonical StreamEvent union.
 */
import type { AgentProvider, AgentMessage, ToolDefinition, StreamEvent, StreamOptions } from '../types.js';
export interface OpenAICompatProviderOptions {
    apiKey: string;
    model?: string;
    maxTokens?: number;
    /** Base URL for the API (default: https://api.openai.com). Include /v1 if needed. */
    baseUrl?: string;
}
export declare class OpenAICompatProvider implements AgentProvider {
    private apiKey;
    private model;
    private maxTokens;
    private baseUrl;
    constructor(options: OpenAICompatProviderOptions);
    stream(messages: AgentMessage[], tools: ToolDefinition[], options?: StreamOptions): AsyncGenerator<StreamEvent>;
}
export declare function createOpenAICompatProvider(options: OpenAICompatProviderOptions): OpenAICompatProvider;
//# sourceMappingURL=openai-compat.d.ts.map