/**
 * 表单设计器组件库入口
 * 
 * 提供三个核心组件：
 * 1. FormDesigner - 设计时组件，用于可视化设计表单
 * 2. FormPreview - 预览组件，用于预览和交互表单（推荐用于纯预览场景）
 * 3. FormRenderer - 运行时组件，用于真实业务场景的表单渲染和提交（推荐用于生产环境）
 */

export { default as FormDesigner } from './Designer';
export type { FormDesignerProps } from './Designer';

export { default as FormPreview } from './Preview';
export type { FormPreviewProps, FormPreviewRef } from './Preview';

export { default as FormRenderer } from './Renderer';
export type { FormRendererProps, FormRendererRef } from './Renderer';

// 导出类型定义
export type {
  FieldType,
  FieldOption,
  CascadeFieldOption,
  DataSourceType,
  ValidationType,
  ValidationRule,
  LinkageType,
  LinkageCondition,
  LinkageRule,
  ApiDataSource,
  PredefinedDataSource,
  PredefinedCascadeDataSource,
  FieldConfig,
  FormConfig,
  FormSchema,
} from './types';

// 导出组件配置
export { COMPONENT_LIST, getComponentsByCategory } from './config';
export type { ComponentMeta } from './config';

// 导出扩展字段（可选，按需使用）
export { WORKFLOW_COMPONENTS, ApproverSelector } from './extensions/workflow';

