import React from 'react'; import type { HTMLAriaDataAttributes } from '../_util/aria-data-attrs'; import type { GenerateSemantic } from '../_util/hooks/useMergeSemantic/semanticType'; import type { CheckboxChangeEvent } from './Checkbox'; import GroupContext from './GroupContext'; export interface CheckboxOptionType { label: React.ReactNode; value: T; style?: React.CSSProperties; className?: string; disabled?: boolean; title?: string; id?: string; onChange?: (e: CheckboxChangeEvent) => void; required?: boolean; } export interface AbstractCheckboxGroupProps extends HTMLAriaDataAttributes { prefixCls?: string; className?: string; rootClassName?: string; options?: (CheckboxOptionType | string | number)[]; disabled?: boolean; style?: React.CSSProperties; } export type CheckboxGroupSemanticType = { classNames?: { root?: string; item?: string; itemIcon?: string; itemLabel?: string; }; styles?: { root?: React.CSSProperties; item?: React.CSSProperties; itemIcon?: React.CSSProperties; itemLabel?: React.CSSProperties; }; }; export type CheckboxGroupSemanticAllType = GenerateSemantic>; export interface CheckboxGroupProps extends AbstractCheckboxGroupProps { name?: string; defaultValue?: T[]; value?: T[]; onChange?: (checkedValue: T[]) => void; children?: React.ReactNode; classNames?: CheckboxGroupSemanticAllType['classNamesAndFn']; styles?: CheckboxGroupSemanticAllType['stylesAndFn']; } export type { CheckboxGroupContext } from './GroupContext'; export { GroupContext }; declare const _default: (props: CheckboxGroupProps & React.RefAttributes) => React.ReactElement; export default _default;