import type { Context } from "@earendil-works/pi-ai";
import type { OpenAiClientConfig } from "../types.js";
export declare function isGitHubModelsBaseUrl(baseUrl: string | undefined): boolean;
export declare function isApiOpenAiBaseUrl(baseUrl: string | undefined): boolean;
export declare function resolveOpenAiResponsesUrl(baseUrl: string): URL;
export declare function resolveOpenAiChatCompletionsUrl(baseUrl: string): URL;
export declare function contextToChatCompletionMessages(context: Context): Array<{
    role: string;
    content: string;
}>;
export declare function contextToResponsesInput(context: Context): Array<{
    role: string;
    content: Array<{
        type: "input_text";
        text: string;
    }>;
}>;
export declare function buildOpenAiRequestHeaders(openaiConfig: OpenAiClientConfig): Record<string, string>;
export declare function createOpenAiHttpError({ baseUrl, status, bodyText, }: {
    baseUrl: string;
    status: number;
    bodyText: string;
}): Error;
