import React from 'react';
import { FieldError } from 'react-hook-form';

interface SwitchProps {
    name: string;
    onChange: (event: React.ChangeEvent<HTMLInputElement>) => 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<SwitchProps & React.RefAttributes<HTMLInputElement>>;

export { type SwitchProps, Switch as default };
