import { ReactElement, Ref, ReactNode } from 'react'; interface PanelType { disabled?: boolean; elementType?: ReactElement["type"]; index?: number; key: string; panelId: string; props?: Record; ref?: Ref; tabId: string; } interface TabType { disabled?: boolean; elementType?: ReactElement["type"]; index?: number; key: string; panelId: string; props?: Record; ref?: Ref; tabId: string; } declare class TabsBuilder { private rootId; constructor(rootId: string); build(children: ReactNode): [TabType[], PanelType[]]; private makeId; } declare function useTabsItems(children: ReactNode, rootId: string): [TabType[], PanelType[]]; export { type PanelType, type TabType, TabsBuilder, useTabsItems };