import * as React from 'react'; import type { TextDirection } from '../../direction-provider/DirectionContext.js'; import { type Dimensions } from '../composite.js'; export interface UseCompositeRootParameters { orientation?: 'horizontal' | 'vertical' | 'both'; cols?: number; loop?: boolean; highlightedIndex?: number; onHighlightedIndexChange?: (index: number) => void; dense?: boolean; direction?: TextDirection; itemSizes?: Array; rootRef?: React.Ref; /** * When `true`, pressing the Home key moves focus to the first item, * and pressing the End key moves focus to the last item. * @default false */ enableHomeAndEndKeys?: boolean; /** * When `true`, keypress events on Composite's navigation keys * be stopped with event.stopPropagation() * @default false */ stopEventPropagation?: boolean; } /** * @ignore - internal hook. */ export declare function useCompositeRoot(params: UseCompositeRootParameters): { getRootProps: (externalProps?: {}) => import("../../utils/types.js").WithAnchorUIEvent, HTMLDivElement>>; highlightedIndex: number; onHighlightedIndexChange: (index: number) => void; elementsRef: React.RefObject<(HTMLDivElement | null)[]>; };