import { ErrorWrapperClassNameProps } from '../ErrorWrapper';
import { FormOnColor, FormSize } from '../../constants';
export interface CheckboxProps extends ErrorWrapperClassNameProps, Pick<React.InputHTMLAttributes<HTMLInputElement>, 'aria-describedby' | 'name' | 'value' | 'disabled' | 'checked' | 'required' | 'onChange'> {
    /** Adds custom classes to the element. */
    className?: string;
    /** The <Label/> next to the checkbox - sublabels kan ikke kombineres med large variant */
    label: React.ReactNode;
    /** input id of the checkbox */
    inputId?: string;
    /** Changes the visuals of the checkbox */
    onColor?: keyof typeof FormOnColor;
    /** Changes the visuals of the checkbox */
    size?: keyof typeof FormSize;
    /** Activates Error style for the checkbox - This is can be true while errorText is empty, when in a FormGroup */
    error?: boolean;
    /** Error text to show above the component */
    errorText?: string;
    /** Error text id */
    errorTextId?: string;
    /** Sets the data-testid attribute. */
    testId?: string;
    /** Ref that is passed to the component */
    ref?: React.Ref<HTMLInputElement | null>;
}
export declare const Checkbox: React.FC<CheckboxProps>;
export default Checkbox;
