import { type ApiKey, type ProviderConfig } from '../../config.js'; import { DetailLogger } from '../../detail-logger.js'; export interface UpstreamRequest { url: string; headers: Record; body: any; proxy?: string; } /** * Build the upstream URL, headers, and body for a messages request. * * For Anthropic providers: direct passthrough with `model` override. * For OpenAI providers: converts the body via convertAnthropicRequestToOpenAI. */ export declare function buildMessagesUpstreamRequest(provider: ProviderConfig, body: any, _stream: boolean, apiKeys?: ApiKey[]): Promise; /** * Make the fetch call to the upstream provider and return the Response. */ export declare function sendMessagesUpstreamRequest(upstream: UpstreamRequest, detailLogger: DetailLogger, requestId: string, timeoutMs: number): Promise; //# sourceMappingURL=upstream-request.d.ts.map