import { FieldValues, Resolver } from "react-hook-form"; import { SchemaProvider } from "@autoform/core"; //#region src/react-hook-form/utils.d.ts /** * Retrieves the error of a field using given error object and field path. * * @param obj - errors object form react-hook-form. * @param path - field path. */ declare function getPathInObject(obj: any, path: string[]): any; /** * Creates a React Hook Form resolver for an AutoForm schema provider. * @param schema - AutoForm schema provider with `schemaType` and `getSchema`. * @returns A React Hook Form resolver that validates cleaned form values. */ declare function createSchemaResolver(schema: SchemaProvider): Resolver; //#endregion export { createSchemaResolver, getPathInObject }; //# sourceMappingURL=utils.d.mts.map