import { ReactNode } from 'react'; /** * Selection state published by `ToggleGroup` to its descendant `ToggleButton`s. * Each reads it via `useToggleGroupContext()` to derive its pressed state and to * toggle itself on click. */ interface ToggleGroupContextValue { /** * Current selection. A single value (or `undefined`) in single-select mode, an array in `multiple` mode. */ value: string | string[] | undefined; /** Whether the group allows more than one selected value at a time. */ multiple: boolean; /** * Toggle a value's membership in the selection. * * In single mode, re-toggling the active value clears the selection; in `multiple` mode it adds/removes. */ toggleValue: (value: string) => void; } /** * Returns the surrounding `ToggleGroup`'s selection state, or `null` when a * `ToggleButton` is used standalone (outside any group). */ export declare function useToggleGroupContext(): ToggleGroupContextValue | null; export declare function ToggleGroupContextProvider(props: { value: ToggleGroupContextValue; children: ReactNode; }): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=ToggleGroupContext.d.ts.map