/**
 * [PLUGIN-005] 功能模块入口
 * 
 * 统一导出所有插件相关功能
 * 
 * @module plugins/index
 * @created 2026-03-21
 */

export * from './FeatureTypes';
export * from './FeatureRegistry';
export * from './useFeature';

export { default as AIOperationsFeature, AutoPricingFeature, MultiShopFeature, B2BTradeFeature, IndependentSiteFeature, AdvancedAnalyticsFeature, APIAccessFeature } from './features';

import { featureRegistry } from './FeatureRegistry';
import AIOperationsFeature, {
  AutoPricingFeature,
  MultiShopFeature,
  B2BTradeFeature,
  IndependentSiteFeature,
  AdvancedAnalyticsFeature,
  APIAccessFeature,
} from './features';

export function initializeFeatures(): void {
  featureRegistry.register(AIOperationsFeature);
  featureRegistry.register(AutoPricingFeature);
  featureRegistry.register(MultiShopFeature);
  featureRegistry.register(B2BTradeFeature);
  featureRegistry.register(IndependentSiteFeature);
  featureRegistry.register(AdvancedAnalyticsFeature);
  featureRegistry.register(APIAccessFeature);
}

export { featureRegistry };
