import { CheckboxValueType } from 'antd/lib/checkbox/Group'; import React from 'react'; import { ResultArrayItemType } from './type'; /** * @property label check all label * @property data Values accepted by child components */ export interface WithCheckAllComponentProps { label?: string; data: ResultArrayItemType[]; value?: CheckboxValueType[]; onChange?: (value: CheckboxValueType[]) => void; } export interface WrappedComponentProps { value?: CheckboxValueType[]; onChange?: (value: CheckboxValueType[]) => void; } /** * This is a high-order component that adds check all functionality to subcomponents */ declare const withCheckAllComponent: (WrappedComponent: React.ComponentType) => React.ComponentType; export default withCheckAllComponent;