import * as React from 'react';
import { FormCollapsedLayoutProps } from '../FormCollapsedLayout/index.d';

type DictItem = {
  label: string;
  value: string;
  disabled?: boolean;
  icon?: string;
};

export interface CheckboxGroupProps extends FormCollapsedLayoutProps {
  sourceData: Array<DictItem>;
  onCheckAllCb?: (checkedKeys: Array<string>) => void;
  renderExtraTip?: (item: DictItem) => React.ReactNode;
  showCheckAll?: boolean;
  titleExt?: React.ReactNode;
  isCollapsed?: boolean;
  renderExtraTip?: () => void;
  value: any;
  onChange: (v: any) => void;
  children?: undefined;
}

declare const CheckboxGroup: React.SFC<CheckboxGroupProps>;

export default CheckboxGroup;
