import { a as MediaKind, o as maxBytesForKind, r as MAX_IMAGE_BYTES, s as mediaKindFromMime, t as MAX_AUDIO_BYTES } from "../constants-DUpDbaN0.js";
import { a as isImageProcessorUnavailableError, c as parseFfprobeCodecAndSampleRate, d as runFfprobe, f as transcodeAudioBuffer, i as getImageMetadata, l as resolveFfmpegBin, n as IMAGE_REDUCE_QUALITY_STEPS, p as transcodeAudioBufferToOpus, r as buildImageResizeSideGrid, s as resizeToJpeg, t as probeVideoDimensions, u as runFfmpeg } from "../media-services-BFu13-Na.js";
import { c as kindFromMime, i as getFileExtension, n as detectMime, r as extensionForMime, s as isGifMedia } from "../mime-B-MGtT8o.js";
import { a as readRemoteMediaBuffer, c as isVoiceCompatibleAudio, i as fetchRemoteMedia, l as isVoiceMessageCompatibleAudio, n as MediaFetchError, o as saveRemoteMedia, r as SavedRemoteMedia, s as saveResponseMedia, t as FetchLike } from "../fetch-BgNS2yh6.js";
import { n as OutboundMediaReadFile, r as buildOutboundMediaLoadOptions, t as OutboundMediaAccess } from "../load-options-63mp15In.js";
import { i as normalizePollInput, n as PollInput, r as normalizePollDurationHours } from "../polls-CfHkU59X.js";
import { c as saveMediaSource, i as getMediaDir, n as ensureMediaDir, r as extractOriginalFilename, s as saveMediaBuffer, t as SavedMedia } from "../store-CU-s5VWG.js";
import { _ as readResponseTextSnippet, v as readResponseWithLimit } from "../http-body-U-uR_Z2b.js";
import { t as describeImageWithModel } from "../image-runtime-CJuAyA2f.js";
import { n as estimateBase64DecodedBytes, t as canonicalizeBase64 } from "../base64-DyL4sNuh.js";
import { t as parseMediaContentLength } from "../content-length--tZ1hXxY.js";
import { a as createDirectTextMediaOutbound, c as unlinkIfExists, d as renderQrPngDataUrl, f as writeQrPngTempFile, g as MEDIA_FFMPEG_MAX_AUDIO_DURATION_SECS, h as resolveOutboundAttachmentFromUrl, i as transcribeFirstAudio, l as renderQrTerminal, m as fillPixel, n as resolveAutoMediaKeyProviders, o as createScopedChannelMediaMaxBytesResolver, p as encodePngRgba, r as resolveDefaultMediaModel, s as resolveChannelMediaMaxBytes, t as resolveAutoImageModel, u as renderQrPngBase64 } from "../media-runtime-syApjDrM.js";
import { i as normalizeInboundPathRoots, t as isInboundPathAllowed } from "../inbound-path-policy-nRJfbQMX.js";
import { n as buildAgentMediaPayload, r as getAgentScopedMediaLocalRoots } from "../agent-media-payload-DrUYDJ6s.js";
export { type FetchLike, IMAGE_REDUCE_QUALITY_STEPS, MAX_AUDIO_BYTES, MAX_IMAGE_BYTES, MEDIA_FFMPEG_MAX_AUDIO_DURATION_SECS, MediaFetchError, type MediaKind, type OutboundMediaAccess, type OutboundMediaReadFile, type PollInput, type SavedMedia, type SavedRemoteMedia, buildAgentMediaPayload, buildImageResizeSideGrid, buildOutboundMediaLoadOptions, canonicalizeBase64, createDirectTextMediaOutbound, createScopedChannelMediaMaxBytesResolver, describeImageWithModel, detectMime, encodePngRgba, ensureMediaDir, estimateBase64DecodedBytes, extensionForMime, extractOriginalFilename, fetchRemoteMedia, fillPixel, getAgentScopedMediaLocalRoots, getFileExtension, getImageMetadata, getMediaDir, isGifMedia, isImageProcessorUnavailableError, isInboundPathAllowed, isVoiceCompatibleAudio, isVoiceMessageCompatibleAudio, kindFromMime, maxBytesForKind, mediaKindFromMime, normalizeInboundPathRoots, normalizePollDurationHours, normalizePollInput, parseFfprobeCodecAndSampleRate, parseMediaContentLength, probeVideoDimensions, readRemoteMediaBuffer, readResponseTextSnippet, readResponseWithLimit, renderQrPngBase64, renderQrPngDataUrl, renderQrTerminal, resizeToJpeg, resolveAutoImageModel, resolveAutoMediaKeyProviders, resolveChannelMediaMaxBytes, resolveDefaultMediaModel, resolveFfmpegBin, resolveOutboundAttachmentFromUrl, runFfmpeg, runFfprobe, saveMediaBuffer, saveMediaSource, saveRemoteMedia, saveResponseMedia, transcodeAudioBuffer, transcodeAudioBufferToOpus, transcribeFirstAudio, unlinkIfExists, writeQrPngTempFile };