import { MouseEvent, RefObject, LegacyRef, Component } from 'react'; import type { TBaseInputProps, TBaseProps } from '../../types'; import { type HelpPopoverProps } from '../../display/HelpPopover'; /** * Альтернативный чекбокс * @reactProps {string|number} value - уникально определяет элемент * @reactProps {boolean} checked - начальное значение * @reactProps {boolean} disabled - только для чтения / нет * @reactProps {function} onChange - вызывается при изменении значения * @reactProps {function} onClick - событие клика по чекбоксу, * @reactProps {string} label - лейбл * @reactProps {string} className - класс копонента CheckboxN2O * @reactProps {string} help - подсказка в popover * @reactProps {boolean} inline - в ряд */ declare type Enhancer = HelpPopoverProps & TBaseProps & TBaseInputProps; export interface Props extends Enhancer { checked?: boolean; inline?: boolean; label?: string; onClick?(event: MouseEvent): void; tabIndex?: number; forwardedRef?: RefObject; inputRef?: LegacyRef; preventDefault?: boolean; } export declare class Checkbox extends Component { state: { id: string; }; componentDidMount(): void; render(): JSX.Element; } export {};