import * as React from 'react';
import {FormGroup, FormGroupDefaultProps, FormGroupProps} from "./FormGroup";

type Props = {
    hiddenLabel?: boolean;
    removeName?: boolean;
} & FormGroupProps & Partial<DefaultProps> & React.HTMLProps<Checkbox>;

type DefaultProps = {
    testAutomationId: string;
    hiddenLabel: boolean;
    removeName: boolean;
} & FormGroupDefaultProps;

export class Checkbox extends FormGroup<Props> {
    controlLabelFallback(): boolean;
    renderInput(hasError: boolean): React.ReactNode;
}