/**
 * LiteLLMAdapter — OpenAI-compatible adapter for LiteLLM proxy.
 *
 * Uses native fetch (Node 18+). Retries 429 responses with
 * exponential back-off + jitter (max 3 attempts). No axios.
 * Cost extracted from usage field when available.
 *
 * BYOM: defaultModel is a constructor param default only.
 * No model string is hardcoded at module scope.
 */
import type { ChatRequest, ChatResponse, LLMProviderPort, StreamDelta } from "../../ports/llm-provider.js";
export interface LiteLLMAdapterConfig {
    baseUrl: string;
    apiKey?: string;
    defaultModel?: string;
}
export declare class LiteLLMAdapter implements LLMProviderPort {
    private readonly baseUrl;
    private readonly apiKey;
    private readonly defaultModel;
    constructor(config: LiteLLMAdapterConfig);
    estimateCost(req: ChatRequest): {
        usd: number;
    };
    complete(req: ChatRequest): Promise<ChatResponse>;
    /** Internal completion logic — extracted from complete() for span instrumentation. */
    private _doComplete;
    stream(req: ChatRequest): AsyncIterable<StreamDelta>;
}
//# sourceMappingURL=litellm.d.ts.map