export declare const useFormSettings: () => import('./context').FormSettings; /** * Given the field config context, calculated the (possibly) prefixed name. * * The prefix (if provided) is prepended with a `.` separator. * * @private */ export declare const useFieldConfig: (name: string) => string; /** * Workaround to extract the field-level validation error, if present. * * Formik kind of *assumes* that the `errors` structure only contains errors for leaf * nodes, but this falls apart for `FieldArray` situations where an individual item can * have an error but the container of values itself can have problems too. * * In the latter case, the error shape is not an array of strings, but just a string. This * causes problems when accessing the error of an item at `$name.$index`, which happily * returns the character of the error string at that position, which is of course not * what you want! * * This hook takes into account the current context and works around that by doing some * runtime type introspection to grab the correct error string. * * @see https://formik.org/docs/api/fieldarray#fieldarray-validation-gotchas */ export declare const useFieldError: (name: string, isMultiValue: boolean) => string; /** * Track a debounced value. * * @param delay Delay in milliseconds. */ export declare function useDebounce(value: T, delay: number): T; /** * Debounce a callback * * @param delay Delay in milliseconds. */ export declare function useDebouncedCallback(callback: () => void, delay: number): () => void;