import React, { CSSProperties } from 'react'; import { UseFormReturnType } from '@mantine/form'; import { useLeadForm } from "../layouts/lightbox/formContext"; export type LeadGenBlock = { id: string; name: string; data: { placeholder: string; value: string; required: boolean; valueHTML?: string; isSendMailChimp?: boolean; listQuestion?: Array<{ value: string; placeholder: string; }>; }; }; export type ThankYou = { image: string; title: string; description: string; }; export type LeadGenFormValues = Record | unknown; export type LeadGenUseFormReturnType = UseFormReturnType T>; export type LeadGenFormRef = LeadGenUseFormReturnType & { submit: () => void; }; export type LeadGenFormProps = { locale?: string; blocks?: LeadGenBlock[]; scrollToErrorField?: boolean; form?: UseFormReturnType; rules?: Parameters[0]['validate']; initialValues?: T; onFinish?: Parameters['onSubmit']>[0]; onFinishFailed?: Parameters['onSubmit']>[1]; className?: string; style?: CSSProperties; }; export declare const LeadGenForm: React.ForwardRefExoticComponent & React.RefAttributes>>;