//#region src/agent/image/understanding/provider-registry.ts
const registry = /* @__PURE__ */ new Map();
function registerImageUnderstandingProvider(provider) {
	if (!provider.id?.trim()) throw new Error("Image understanding provider id is required");
	registry.set(provider.id.toLowerCase(), provider);
}
function getImageUnderstandingProvider(providerId) {
	return registry.get(providerId.toLowerCase());
}
function listImageUnderstandingProviders() {
	return [...registry.values()];
}
function clearImageUnderstandingRegistryForTests() {
	registry.clear();
}
//#endregion
export { clearImageUnderstandingRegistryForTests, getImageUnderstandingProvider, listImageUnderstandingProviders, registerImageUnderstandingProvider };

//# sourceMappingURL=provider-registry.js.map