import React from "react"; import { useForm } from ".."; import { EventElement, InputType, ValidationFields } from "../types/package"; type RenderProp = { field: { value: any; checked: any; multiple: boolean | undefined; disabled: boolean | undefined; name: string; type: InputType; onBlur: (e: React.FocusEvent) => void; onChange: (e: React.ChangeEvent) => void; onFocus: (e: React.FocusEvent) => void; }; fieldState: { isTouched: boolean; isDirty: boolean; invalid: boolean; isActive: boolean; isEmpty: boolean; error: string[]; }; }; type ControllerProps = { name: string; type: InputType; control: ReturnType["control"]; initialValue?: unknown; rules?: ValidationFields; disabled?: boolean; runValidationWhenChangesIn?: string[]; controllerRef?: React.MutableRefObject; radioFieldValue?: string; checkboxFieldValue?: string; render: (arg: RenderProp) => React.JSX.Element; }; declare function Controller(props: ControllerProps): React.JSX.Element; export default Controller;