/**
 * Form Utilities and Hooks
 *
 * Centralized exports for form-related utilities.
 *
 * @module lib/forms
 */

// Utils
export { getFirstValidationError, getAllValidationErrors } from './utils/getFirstValidationError';
export type { ValidationError } from './utils/getFirstValidationError';

export {
  safeValue,
  isNumber,
  isString,
  isBoolean,
  isArray,
  isObject,
  deepMergeWithDefaults,
  createFormInitializer,
} from './utils/mergeWithDefaults';

// Hooks
export { useValidationErrorHandler } from './hooks/useValidationErrorHandler';
export type {
  TabFieldMapping,
  UseValidationErrorHandlerOptions,
  UseValidationErrorHandlerReturn,
} from './hooks/useValidationErrorHandler';
