import { type DataTestId, type MaskingProps, type StylingProps, type WithChildren } from '@dynatrace/strato-components/core'; import type { ChipOwnProps } from '../chip/types/chip.js'; /** * Accepted properties for ChipGroup * @public */ export interface ChipGroupBaseProps extends StylingProps, DataTestId, MaskingProps { /** * Whether the chip group is disabled. * If set to true, all the chips inside the group are disabled, unless explicitly overridden. * @defaultValue false */ disabled?: boolean; /** * The size of the spacing and chips in the group. * All the chips match the size of the group, but can be overridden individually. * @defaultValue default */ size?: ChipOwnProps['size']; /** Callback triggered when the expanded state changes. */ onExpandedChange?: (state: boolean) => void; } /** * @public */ export interface ChipGroupControlledProps { /** Whether the chip group is expanded. */ expanded?: boolean; /** Whether the chip group is expanded by default. */ defaultExpanded?: never; } /** * @public */ export interface ChipGroupUncontrolledProps { /** Whether the chip group is expanded. */ expanded?: never; /** Whether the chip group is expanded by default. */ defaultExpanded?: boolean; } /** * @public */ export type ChipGroupProps = ChipGroupBaseProps & (ChipGroupControlledProps | ChipGroupUncontrolledProps) & WithChildren; /** * Use the `ChipGroup` component to group multiple `Chip`s in an expandable container. * @public */ export declare const ChipGroup: ((props: ChipGroupProps & import("react").RefAttributes) => React.ReactElement | null) & { Control: (props: import("./Control.js").ChipGroupControlProps) => import("react/jsx-runtime.js").JSX.Element | null; HiddenCount: () => import("react/jsx-runtime.js").JSX.Element; };