import type { CostClass, GatewayRequest, GatewayStreamChunk, ModelProviderConfig, NormalizedResponse, ProviderAdapter } from "./types.js";
export interface AdapterDeps {
    readonly fetchImpl?: typeof fetch | undefined;
    readonly requestId: string;
    readonly costClass: CostClass;
    readonly now?: (() => number) | undefined;
}
export declare class OpenAiAdapter implements ProviderAdapter {
    private readonly deps;
    private readonly now;
    constructor(deps: AdapterDeps);
    call: (request: GatewayRequest, config: ModelProviderConfig) => Promise<NormalizedResponse>;
    callStream: (this: OpenAiAdapter, request: GatewayRequest, config: ModelProviderConfig) => AsyncGenerator<GatewayStreamChunk>;
    private streamDeltas;
    private assembleResponse;
    private mapStreamError;
    private dispatch;
    private mapDispatchError;
    private readBody;
    private readErrorBody;
}
//# sourceMappingURL=openai-adapter.d.ts.map