import type { FormContextValues, FormState } from './Form.types'; /** * Custom hook to access form context values. * Provides direct access to all form state management functions and values. * * @throws {Error} If used outside of a Form component * @returns {FormContextValues} Object containing form state and control functions * * @example * ```tsx * const MyCustomField = () => { * const { * formState, * formErrors, * updateFieldValue, * resetForm * } = useForm(); * * return ( *