import React, { ChangeEvent } from "react"; import "../../scss/components/SelectCheckboxList.scss"; interface IPropsSelectCheckboxList { isReadingOnly?: boolean; isCategoryDisabled?: boolean; isRadio?: boolean; badgeContent?: "all" | "off" | "number"; name?: string; text: string; values: number[]; onChange: (newValues: number[]) => void; options: IOptionsSelectCheckboxList[]; hasSearchBox?: boolean; className?: string; renderText?: (checkedOptions: IOptionsSelectCheckboxList[]) => JSX.Element; hasOptionAll?: boolean; hasBadge?: boolean; } interface IStateSelectCheckboxList { searchText: string; } export interface IOptionsSelectCheckboxList { label: string; isCategory?: boolean; values: number[]; } declare class SelectCheckboxList extends React.Component { state: IStateSelectCheckboxList; props: IPropsSelectCheckboxList; static defaultProps: Partial; constructor(props: IPropsSelectCheckboxList); handleChangeSearchText(event: ChangeEvent): void; getSelectOption(option: IOptionsSelectCheckboxList): JSX.Element; isChecked(optionValues: number[]): boolean; toggleOption(option: IOptionsSelectCheckboxList): void; areAllChecked(): boolean; render(): JSX.Element; hasOptionAll(): boolean; renderText(): JSX.Element; } export default SelectCheckboxList;