import { type FormEvent, type Context } from 'react'; /** @internal */ export type ToggleButtonGroupContextType = { /** The name of the ToggleButtonGroup. */ name?: string; /** * Whether the ToggleButtonGroup is required. * @defaultValue false * */ isRequired?: boolean; /** Whether the ToggleButtonGroup is invalid. */ hasError?: boolean; /** Whether the ToggleButtonGroup is disabled. */ isDisabled?: boolean; /** Whether the ToggleButtonGroup is read-only. */ isReadOnly?: boolean; /** Whether the ToggleButtonGroup is aria-disabled. */ ariaDisabled?: boolean; /** The selected value of the ToggleButtonGroup. */ selectedValue?: string | null; /** Handler that is called when the value of the group changes. */ onChange?: (value: string, event?: FormEvent) => void; }; /** * Context to hold the state of the ToggleButtonGroup * @internal */ export declare const ToggleButtonGroupContext: Context;