import { BoxProps, CompoundStylesApiProps, ElementProps, Factory } from '../../../core'; export type ToolbarToggleGroupStylesNames = 'group'; interface ToolbarToggleGroupBaseProps extends BoxProps, CompoundStylesApiProps, Omit, 'onChange' | 'value' | 'defaultValue'> { /** Disables all toggle items within this group */ disabled?: boolean; /** `Toolbar.ToggleItem` components */ children: React.ReactNode; } export interface ToolbarToggleGroupSingleProps extends ToolbarToggleGroupBaseProps { /** Selection mode: `'single'` allows at most one active item, `'multiple'` allows any number of active items */ type: 'single'; /** Controlled value, `null` when no item is active */ value?: string | null; /** Uncontrolled default value */ defaultValue?: string | null; /** Called with the new value when an item is toggled, `null` when the active item is deselected */ onChange?: (value: string | null) => void; } export interface ToolbarToggleGroupMultipleProps extends ToolbarToggleGroupBaseProps { /** Selection mode: `'single'` allows at most one active item, `'multiple'` allows any number of active items */ type: 'multiple'; /** Controlled value, array of active item values */ value?: string[]; /** Uncontrolled default value */ defaultValue?: string[]; /** Called with the array of active item values when an item is toggled */ onChange?: (value: string[]) => void; } export type ToolbarToggleGroupProps = ToolbarToggleGroupSingleProps | ToolbarToggleGroupMultipleProps; export type ToolbarToggleGroupFactory = Factory<{ props: ToolbarToggleGroupProps; ref: HTMLDivElement; stylesNames: ToolbarToggleGroupStylesNames; compound: true; }>; export declare const ToolbarToggleGroup: import("../../..").MantineComponent<{ props: ToolbarToggleGroupProps; ref: HTMLDivElement; stylesNames: ToolbarToggleGroupStylesNames; compound: true; }>; export {};