import FormBuilder from './index.vue'
import type {
  FormBuilderItem,
  FormBuilderConfig,
  FormBuilderEvents,
  FormBuilderMethods
} from './types'
import {
  createFormBuilderItem,
  createFormBuilderConfig,
  validateFormBuilderItem,
  validateFormBuilderConfig,
  generateDefaultItems,
  importFromJson,
  exportToJson,
  duplicateItem,
  createBatchItems
} from './utils'

// 导出组件
export default FormBuilder

// 导出类型
export type {
  FormBuilderItem,
  FormBuilderConfig,
  FormBuilderEvents,
  FormBuilderMethods
}

// 导出工具函数
export {
  createFormBuilderItem,
  createFormBuilderConfig,
  validateFormBuilderItem,
  validateFormBuilderConfig,
  generateDefaultItems,
  importFromJson,
  exportToJson,
  duplicateItem,
  createBatchItems
}



