import type { Context } from "@earendil-works/pi-ai";
export { resolveOpenAiClientConfig, type OpenAiClientConfigInput, } from "../openai-client-config.js";
import type { OpenAiStructuredOutput, OpenAiTextCompletionResult, OpenAiTextStreamResult } from "./openai/types.js";
import type { OpenAiClientConfig } from "./types.js";
export { completeOpenAiDocument } from "./openai/responses.js";
export type { OpenAiStructuredOutput } from "./openai/types.js";
export declare function completeOpenAiText({ modelId, openaiConfig, context, temperature, maxOutputTokens, signal, fetchImpl, structuredOutput, }: {
    modelId: string;
    openaiConfig: OpenAiClientConfig;
    context: Context;
    temperature?: number;
    maxOutputTokens?: number;
    signal: AbortSignal;
    fetchImpl?: typeof fetch;
    structuredOutput?: OpenAiStructuredOutput;
}): Promise<OpenAiTextCompletionResult>;
export declare function streamOpenAiText({ modelId, openaiConfig, context, temperature, maxOutputTokens, signal, fetchImpl, }: {
    modelId: string;
    openaiConfig: OpenAiClientConfig;
    context: Context;
    temperature?: number;
    maxOutputTokens?: number;
    signal: AbortSignal;
    fetchImpl?: typeof fetch;
}): Promise<OpenAiTextStreamResult | null>;
