import * as React from 'react'; import type { TabsRootContext } from '../root/TabsRootContext.js'; import { GenericHTMLProps } from '../../utils/types.js'; declare function useTabsList(parameters: useTabsList.Parameters): useTabsList.ReturnValue; declare namespace useTabsList { interface Parameters extends Pick { /** * Ref to the root element. */ rootRef: React.Ref; tabsListRef: React.RefObject; } interface ReturnValue { /** * Resolver for the TabsList component's props. * @param externalProps additional props for Tabs.TabsList * @returns props that should be spread on Tabs.TabsList */ getRootProps: (externalProps?: GenericHTMLProps) => GenericHTMLProps; /** * Callback when a Tab is activated * @param {any | null} newValue The value of the newly activated tab. * @param {Event} event The event that activated the Tab. */ onTabActivation: (newValue: any, event: Event) => void; rootRef: React.RefCallback | null; tabsListRef: React.RefObject; } } export { useTabsList };