import * as React from 'react'; import { useFloatingRootContext } from '@floating-ui/react'; import type { TransitionStatus } from '../../utils/useTransitionStatus.js'; import type { useFieldControlValidation } from '../../field/control/useFieldControlValidation.js'; import type { GenericHTMLProps } from '../../utils/types.js'; export interface SelectRootContext { name: string | undefined; disabled: boolean; readOnly: boolean; required: boolean; value: any; setValue: (nextValue: any, event?: Event) => void; open: boolean; setOpen: (nextOpen: boolean, event?: Event) => void; mounted: boolean; setMounted: React.Dispatch>; transitionStatus: TransitionStatus; triggerElement: HTMLElement | null; setTriggerElement: React.Dispatch>; positionerElement: HTMLElement | null; setPositionerElement: React.Dispatch>; scrollUpArrowVisible: boolean; setScrollUpArrowVisible: React.Dispatch>; scrollDownArrowVisible: boolean; setScrollDownArrowVisible: React.Dispatch>; setControlledAlignItemToTrigger: React.Dispatch>; listRef: React.MutableRefObject>; popupRef: React.MutableRefObject; getRootTriggerProps: (props?: GenericHTMLProps) => GenericHTMLProps; getRootPositionerProps: (props?: GenericHTMLProps) => GenericHTMLProps; getItemProps: (props?: GenericHTMLProps & { active?: boolean; selected?: boolean; }) => Record; floatingRootContext: ReturnType; label: string; setLabel: React.Dispatch>; valuesRef: React.MutableRefObject>; valueRef: React.MutableRefObject; selectedItemTextRef: React.MutableRefObject; labelsRef: React.MutableRefObject>; touchModality: boolean; setTouchModality: React.Dispatch>; alignItemToTrigger: boolean; typingRef: React.MutableRefObject; selectionRef: React.MutableRefObject<{ allowUnselectedMouseUp: boolean; allowSelectedMouseUp: boolean; allowSelect: boolean; }>; id: string | undefined; fieldControlValidation: ReturnType; modal: boolean; registerSelectedItem: (index: number) => void; onOpenChangeComplete?: (open: boolean) => void; keyboardActiveRef: React.MutableRefObject; } export declare const SelectRootContext: React.Context; export declare function useSelectRootContext(): SelectRootContext;