import { type TabItemProps } from '../TabItem'; /** * Options for the useCalculatedSelectedTabId hook. */ type UseCalculatedSelectedTabIdOptions = { /** * The selected tab ID, get from Tabs props. */ selectedTabId?: string; /** * Callback to be called when the selected tab ID changes, get from Tabs props. */ onSelectedTabChange?: (tabId: string) => void; /** * The list of tab props, calculated from Tabs children. */ tabs: TabItemProps[]; }; /** * Custom hook to manage the selected tab ID based on provided options. * Automatically updates the selected tab ID when the `selectedTabId` prop changes. * If no tab is selected, defaults to the first tab ID from the list of tab IDs. * If `onSelectedTabChange` is provided, the component is controlled and updates are handled externally. * * @param options - The options for the hook including selected tab ID, callback for tab changes, and list of tab IDs. * * @returns An object containing the calculated selected tab ID and a function to set the selected tab. */ export declare function useCalculatedSelectedTabId({ selectedTabId, onSelectedTabChange, tabs, }: UseCalculatedSelectedTabIdOptions): { calculatedSelectedTabId: string | undefined; setCalculatedSelectedTab: (tabId: string) => void; }; export {};