import { AriaToggleButtonGroupProps } from 'react-aria/useToggleButtonGroup'; import { ClassNameOrFunction, ContextValue, RenderProps, SlotProps } from './utils'; import { GlobalDOMAttributes, Orientation } from '@react-types/shared'; import React from 'react'; import { ToggleGroupState } from 'react-stately/useToggleGroupState'; export interface ToggleButtonGroupRenderProps { /** * The orientation of the toggle button group. * @selector [data-orientation="horizontal | vertical"] */ orientation: Orientation; /** * Whether the toggle button group is disabled. * @selector [data-disabled] */ isDisabled: boolean; /** * State of the toggle button group. */ state: ToggleGroupState; } export interface ToggleButtonGroupProps extends AriaToggleButtonGroupProps, RenderProps, SlotProps, GlobalDOMAttributes { /** * The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state. * @default 'react-aria-ToggleButtonGroup' */ className?: ClassNameOrFunction; } export declare const ToggleButtonGroupContext: React.Context>; export declare const ToggleGroupStateContext: React.Context; /** * A toggle button group allows a user to toggle multiple options, with single or multiple selection. */ export declare const ToggleButtonGroup: (props: ToggleButtonGroupProps & React.RefAttributes) => React.ReactElement> | null;