import { PureComponent } from 'react'; import { ICheckboxProps } from '../checkbox'; import Store from './Store'; export interface IGridSelectionAllCheckboxProps { store: Store; datasets: ReadonlyArray; disabledDatasets: ReadonlyArray; getDataKey: (data: Data, rowIndex: number | string) => string; disabled: boolean; onSelect: (type: 'selectAll' | 'removeAll', datasets: ReadonlyArray) => void; } interface IGridSelectionAllCheckboxState { checked: boolean; indeterminate: boolean; } declare class SelectionCheckboxAll extends PureComponent, IGridSelectionAllCheckboxState> { constructor(props: IGridSelectionAllCheckboxProps); unsubscribe: any; subscribe: () => void; getCheckBoxState: (props: IGridSelectionAllCheckboxProps, type: 'every' | 'some') => boolean; getCheckState: (props: IGridSelectionAllCheckboxProps) => boolean; getIndeterminateState: (props: IGridSelectionAllCheckboxProps) => boolean; setCheckState: (props: IGridSelectionAllCheckboxProps) => void; onChange: ICheckboxProps['onChange']; componentDidMount(): void; componentWillReceiveProps(nextProps: IGridSelectionAllCheckboxProps): void; componentWillUnmount(): void; render(): JSX.Element; } export default SelectionCheckboxAll;