import React, { type FieldsetHTMLAttributes } from 'react';
import type { SharedProps } from '@coinbase/cds-common/types';
import type { FilteredHTMLAttributes } from '../types';
/**
* @deprecated CheckboxGroup is deprecated. Use ControlGroup with role="group" instead. This will be removed in a future major release.
* @deprecationExpectedRemoval v8
*
* @example
* // Instead of:
*
* Option 1
*
*
* // Use:
*
*/
export type CheckboxGroupBaseProps = FilteredHTMLAttributes<
FieldsetHTMLAttributes,
'onChange'
> &
SharedProps & {
/** Checkbox elements that are part of the checkbox group. */
children: React.ReactElement[];
/** Set a label summary for the group of checkboxes. */
label?: React.ReactNode;
/** Checkbox options that are checked. */
selectedValues: Set;
className?: string;
/** Handle change event when pressing on a checkbox option. */
onChange?: React.ChangeEventHandler;
style?: React.CSSProperties;
};
/**
* @deprecated CheckboxGroup is deprecated. Use ControlGroup with role="group" instead. This will be removed in a future major release.
* @deprecationExpectedRemoval v8
*/
export type CheckboxGroupProps =
CheckboxGroupBaseProps;
declare const CheckboxGroupWithRef: (
props: CheckboxGroupProps & {
ref?: React.Ref;
},
) => React.ReactElement;
export declare const CheckboxGroup: typeof CheckboxGroupWithRef &
React.MemoExoticComponent;
export {};
//# sourceMappingURL=CheckboxGroup.d.ts.map