import { t as createSubsystemLogger } from "../subsystem-CO3EU02N.js";
import { i as resolveAgentModelPrimaryValue, r as resolveAgentModelFallbackValues } from "../model-input-DiS5KWpR.js";
import { t as getProviderEnvVars } from "../provider-env-vars-YJJfP41l.js";
import { i as isFailoverError, r as describeFailoverError } from "../failover-error-C8kI-SFX.js";
import { n as listImageGenerationProviders, r as parseImageGenerationModelRef, t as getImageGenerationProvider } from "../provider-registry-BTinAtEK.js";
import { f as throwCapabilityGenerationFailure, n as buildNoCapabilityModelConfiguredMessage, o as resolveCapabilityModelCandidates } from "../runtime-shared-D46DedhZ.js";
import { l as normalizeGooglePreviewModelId } from "../provider-model-shared-DN93fygQ.js";
//#region src/plugin-sdk/image-generation-core.ts
const OPENAI_DEFAULT_IMAGE_MODEL = "gpt-image-2";
let imageGenerationCoreAuthRuntimePromise;
async function loadImageGenerationCoreAuthRuntime() {
	imageGenerationCoreAuthRuntimePromise ??= import("../image-generation-core.auth.runtime-DJn7gkDn.js");
	return imageGenerationCoreAuthRuntimePromise;
}
async function resolveApiKeyForProvider(...args) {
	return (await loadImageGenerationCoreAuthRuntime()).resolveApiKeyForProvider(...args);
}
//#endregion
export { OPENAI_DEFAULT_IMAGE_MODEL, buildNoCapabilityModelConfiguredMessage, createSubsystemLogger, describeFailoverError, getImageGenerationProvider, getProviderEnvVars, isFailoverError, listImageGenerationProviders, normalizeGooglePreviewModelId as normalizeGoogleModelId, parseImageGenerationModelRef, resolveAgentModelFallbackValues, resolveAgentModelPrimaryValue, resolveApiKeyForProvider, resolveCapabilityModelCandidates, throwCapabilityGenerationFailure };
