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