import type { FormValue } from '../sharedTypes/formHelperTypes'; /** * Custom hook for managing form field editing functionality within a form context. * This hook provides access to a form field's current value and a handler function to update that value. * It must be used within a FormProvider component to access the form context properly. * * @param name The name identifier of the form field to manage. * @returns An object containing the field's current value and a change handler function. * * @throws {Error} Throws an error if used outside of a FormProvider context. * * @example * ```tsx * const { value, handleFieldChange } = useFormEditFunction('username'); * * // Update the field value * handleFieldChange('newUsername'); * * // Access current value * console.log(value); // Current username value * ``` */ export declare const useFormEditFunction: (name: string) => { handleFieldChange: (value: string[] | boolean | string) => void; value: T | undefined; };