import { PureComponent } from 'react'; import Store from './Store'; import { IGridBatchRender, IGridSelection } from './types'; export interface IBatchComponentsProps { batchRender: IGridBatchRender; prefix: string; position: 'header' | 'foot'; onSelect: (type: string, datasets: ReadonlyArray) => void; store: Store; datasets: ReadonlyArray; getDataKey: (data: Data, rowIndex: string | number) => string; selection: IGridSelection; selectionPropsCache: { [key: string]: { disabled?: boolean; }; }; rowKey: string; } interface IState { selectedRows: Data[]; batchNeedRenderFixed: boolean; } declare class BatchComponents extends PureComponent, IState> { state: IState; unsubscribe: any; unsubscribeBatchRenderFixed: any; getSelectionPropsByItem: (data: Data, rowIndex: number | string) => { disabled?: boolean; }; getData: () => readonly Data[]; getCheckboxAllDisabled: () => boolean; getSelectedRows: () => Data[]; subscribe: () => void; componentDidMount(): void; componentWillUnmount(): void; render(): JSX.Element; } export default BatchComponents;