import { FormStateFormattedItem, FormValues, NamesWithNestedPaths, Schema, SchemaFieldName, SchemaFieldsTemplate } from '../types'; import { DeepPartial, UseFormReturn as UseFormReturnRHF } from 'react-hook-form'; export type UseFormProps = { schema: Schema; defaultValues?: DeepPartial>; }; export type UseFormReturn, SchemaFieldName>> = Pick>, 'register'> & { getItem: (itemPath: FieldsNames) => FormStateFormattedItem | undefined; }; export declare const useForm: ({ schema, defaultValues }: UseFormProps) => UseFormReturn, string> | Extract as SFT[K] extends import("../types").SchemaFieldArrayTemplate ? Extract : never]: SFT[K] extends import("../types").SchemaFieldArrayTemplate ? NamesWithNestedPaths[Extract] : never; }, string>>;