import React, { ChangeEvent, ReactNode } from 'react'; import { FieldError } from 'react-hook-form'; interface CheckboxProps extends React.InputHTMLAttributes { name: string; onChange: (e: ChangeEvent) => void; label?: ReactNode; checked?: boolean; inputClassName?: string; labelClassName?: string; errorClassName?: string; disabled?: boolean; error?: boolean | string | { message?: string; } | null | undefined | FieldError; } declare const Checkbox: React.ForwardRefExoticComponent>; export { type CheckboxProps, Checkbox as default };