import * as React from 'react'; import { TabsListProviderValue } from './TabsListProvider'; import { ListAction } from '../useList'; export interface UseTabsListParameters { /** * Ref to the root element. */ rootRef: React.Ref; } export type UseTabsListRootSlotProps = ExternalProps & { 'aria-label'?: React.AriaAttributes['aria-label']; 'aria-labelledby'?: React.AriaAttributes['aria-labelledby']; 'aria-orientation'?: React.AriaAttributes['aria-orientation']; role: React.AriaRole; ref: React.RefCallback | null; onKeyDown?: React.KeyboardEventHandler; }; export interface UseTabsListReturnValue { /** * The value to be passed to the TabListProvider above all the tabs. */ contextValue: TabsListProviderValue; /** * Action dispatcher for the tabs list component. * Allows to programmatically control the tabs list. */ dispatch: (action: ListAction) => void; /** * Resolver for the root slot's props. * @param externalProps props for the root slot * @returns props that should be spread on the root slot */ getRootProps: = {}>(externalProps?: ExternalProps) => UseTabsListRootSlotProps; /** * The value of the currently highlighted tab. */ highlightedValue: string | number | null; /** * If `true`, it will indicate that the text's direction in right-to-left. */ isRtl: boolean; /** * The component orientation (layout flow direction). */ orientation: 'horizontal' | 'vertical'; rootRef: React.RefCallback | null; /** * The value of the currently selected tab. */ selectedValue: string | number | null; } export declare const TabsListActionTypes: { readonly valueChange: "valueChange"; }; export interface ValueChangeAction { type: typeof TabsListActionTypes.valueChange; value: string | number | null; }