import { l as normalizeOptionalString } from "../string-coerce-DJnd-JG-.js";
import { Ao as SpeechDirectiveTokenParseContext, Bo as SpeechProviderResolveConfigContext, Do as resolveEffectiveTtsConfig, Eo as TtsConfigResolutionContext, Fo as SpeechProviderConfiguredContext, Go as SpeechSynthesisStreamResult, Ho as SpeechProviderResolveTalkOverridesContext, Jo as SpeechVoiceOption, Ko as SpeechSynthesisTarget, Lo as SpeechProviderOverrides, Mo as SpeechListVoicesRequest, No as SpeechModelOverridePolicy, Oo as TTS_AUTO_MODES, Po as SpeechProviderConfig, Qr as SpeechProviderPlugin, Ro as SpeechProviderPrepareSynthesisContext, To as ResolvedTtsModelOverrides, Uo as SpeechSynthesisRequest, Vo as SpeechProviderResolveTalkConfigContext, Wo as SpeechSynthesisStreamRequest, Xo as TtsDirectiveParseResult, Yo as TtsDirectiveOverrides, jo as SpeechDirectiveTokenParseResult, ko as normalizeTtsAutoMode, qo as SpeechTelephonySynthesisRequest, wo as ResolvedTtsConfig, zo as SpeechProviderPreparedSynthesis } from "../types-CaqpvD9U.js";
import { t as asBoolean } from "../boolean-CThIQsGO.js";
import { s as asFiniteNumber } from "../number-coercion-C7PMvT3i.js";
import { a as createProviderHttpError, c as formatProviderErrorPayload, g as truncateErrorDetail, h as readResponseTextLimited, l as formatProviderHttpErrorMessage, o as extractProviderErrorDetail, r as assertOkOrThrowProviderError, s as extractProviderRequestId, t as asObject } from "../provider-http-errors-CYg0W8L9.js";
import { a as parseTtsDirectives, c as normalizeSeed, d as scheduleCleanup, i as listSpeechProviders, l as requireInRange, n as getSpeechProvider, o as normalizeApplyTextNormalization, r as listLoadedSpeechProviders, s as normalizeLanguageCode, t as canonicalizeSpeechProviderId, u as resolveSpeechProviderApiKey } from "../provider-registry-DkVZfBwe.js";
import { n as summarizeText, t as parseSpeechDirectiveNumberOverride } from "../speech-core-Jbg3k-g8.js";
import { t as normalizeSpeechProviderId } from "../provider-registry-core-GbM4RqLj.js";
export { type ResolvedTtsConfig, type ResolvedTtsModelOverrides, type SpeechDirectiveTokenParseContext, type SpeechDirectiveTokenParseResult, type SpeechListVoicesRequest, type SpeechModelOverridePolicy, type SpeechProviderConfig, type SpeechProviderConfiguredContext, type SpeechProviderOverrides, type SpeechProviderPlugin, type SpeechProviderPrepareSynthesisContext, type SpeechProviderPreparedSynthesis, type SpeechProviderResolveConfigContext, type SpeechProviderResolveTalkConfigContext, type SpeechProviderResolveTalkOverridesContext, type SpeechSynthesisRequest, type SpeechSynthesisStreamRequest, type SpeechSynthesisStreamResult, type SpeechSynthesisTarget, type SpeechTelephonySynthesisRequest, type SpeechVoiceOption, TTS_AUTO_MODES, type TtsConfigResolutionContext, type TtsDirectiveOverrides, type TtsDirectiveParseResult, asBoolean, asFiniteNumber, asObject, assertOkOrThrowProviderError, canonicalizeSpeechProviderId, createProviderHttpError, extractProviderErrorDetail, extractProviderRequestId, formatProviderErrorPayload, formatProviderHttpErrorMessage, getSpeechProvider, listLoadedSpeechProviders, listSpeechProviders, normalizeApplyTextNormalization, normalizeLanguageCode, normalizeSeed, normalizeSpeechProviderId, normalizeTtsAutoMode, parseSpeechDirectiveNumberOverride, parseTtsDirectives, readResponseTextLimited, requireInRange, resolveEffectiveTtsConfig, resolveSpeechProviderApiKey, scheduleCleanup, summarizeText, normalizeOptionalString as trimToUndefined, truncateErrorDetail };