import type { ModelProviderUISection } from './types';

/**
 * Lazy-loads getModelProvidersUIConfigSection only when needed (not in env-only mode).
 * Avoids loading all 9 providers into the module graph during layout/config initialization.
 */
export function loadModelProvidersUIConfigSection(): ModelProviderUISection[] {
  // eslint-disable-next-line @typescript-eslint/no-require-imports
  const { getModelProvidersUIConfigSection } = require('../models/providers');
  return getModelProvidersUIConfigSection();
}
