import React, { Context } from 'react'; import { FieldValues, UseFormProps, SubmitHandler } from 'react-hook-form'; import * as yup from 'yup'; interface IContext { schema?: yup.ObjectSchema; defaultValues?: Record; } export declare const FieldsContext: Context; export interface IFormWrapperProps extends Omit { children?: React.ReactNode; validationSchema: yup.ObjectSchema; model: TModel; onSubmit: SubmitHandler; className?: string; } export declare function FormProvider>({ children, validationSchema, model, onSubmit, className, ...rest }: IFormWrapperProps): JSX.Element; export {};