import { _ as StructuredExtractionTextInput, a as ImagesDescriptionInput, f as MediaUnderstandingProvider, g as StructuredExtractionResult, h as StructuredExtractionRequest, i as ImageDescriptionResult, m as StructuredExtractionInput, n as AudioTranscriptionResult, o as ImagesDescriptionRequest, p as StructuredExtractionImageInput, r as ImageDescriptionRequest, s as ImagesDescriptionResult, t as AudioTranscriptionRequest, v as VideoDescriptionRequest, y as VideoDescriptionResult } from "./types-CINPEPGj.js";
import { i as describeImagesWithModelPayloadTransform, n as describeImageWithModelPayloadTransform, r as describeImagesWithModel, t as describeImageWithModel } from "./image-runtime-B59l3HTd.js";

//#region packages/media-understanding-common/src/openai-compatible-video.d.ts
type OpenAiCompatibleVideoPayload = {
  choices?: Array<{
    message?: {
      content?: string | Array<{
        text?: string;
      }>;
      reasoning_content?: string;
    };
  }>;
};
declare function resolveMediaUnderstandingString(value: string | undefined, fallback: string): string;
declare function coerceOpenAiCompatibleVideoText(payload: OpenAiCompatibleVideoPayload): string | null;
declare function buildOpenAiCompatibleVideoRequestBody(params: {
  model: string;
  prompt: string;
  mime: string;
  buffer: Buffer;
}): {
  model: string;
  messages: {
    role: string;
    content: ({
      type: string;
      text: string;
      video_url?: undefined;
    } | {
      type: string;
      video_url: {
        url: string;
      };
      text?: undefined;
    })[];
  }[];
};
//#endregion
//#region src/media-understanding/openai-compatible-audio.d.ts
type OpenAiCompatibleAudioParams = AudioTranscriptionRequest & {
  defaultBaseUrl: string;
  defaultModel: string;
  provider?: string;
};
declare function transcribeOpenAiCompatibleAudio(params: OpenAiCompatibleAudioParams): Promise<AudioTranscriptionResult>;
//#endregion
export { type AudioTranscriptionRequest, type AudioTranscriptionResult, type ImageDescriptionRequest, type ImageDescriptionResult, type ImagesDescriptionInput, type ImagesDescriptionRequest, type ImagesDescriptionResult, type MediaUnderstandingProvider, type OpenAiCompatibleVideoPayload, type StructuredExtractionImageInput, type StructuredExtractionInput, type StructuredExtractionRequest, type StructuredExtractionResult, type StructuredExtractionTextInput, type VideoDescriptionRequest, type VideoDescriptionResult, buildOpenAiCompatibleVideoRequestBody, coerceOpenAiCompatibleVideoText, describeImageWithModel, describeImageWithModelPayloadTransform, describeImagesWithModel, describeImagesWithModelPayloadTransform, resolveMediaUnderstandingString, transcribeOpenAiCompatibleAudio };