'use client';

// 导出所有组件
export { Form } from './Form';
export { FormItem } from './FormItem';
export { FormDependency } from './FormDependency';
export { FormError } from './FormError';

// 导出 Context Hook
export { useFormContext } from './context';

// 导出所有类型
export type {
  Rule,
  Rules,
  FormContextValue,
  CombineValidateResult,
  FormProps,
  FormAction,
  FormItemProps,
  FormDependencyProps,
  FormErrorProps,
} from './types';

// 导出工具函数
export { validateRule, getByPath, setByPath, getLength } from './utils';

// 默认导出 Form 组件
export { Form as default } from './Form';
