/**
 * 表单设计器组件库入口
 * 
 * 提供两个核心组件：
 * 1. FormDesigner - 设计时组件，用于可视化设计表单
 * 2. FormRenderer - 运行时组件，用于渲染和提交表单
 */

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

export { default as FormRenderer } from './Renderer';
export type { FormRendererProps } 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';

