import * as React from 'react'; import { type SemanticClassName } from "../_util/classNameUtils"; import type { SafeKey } from "../_util/type"; import type { MenuProps } from '../menu'; import type { GetIndicatorSize } from './hooks/useIndicator'; import type { AnimatedConfig, MoreProps, OnTabScroll, RenderTabBar, Tab, TabBarExtraContent, TabPosition, TabsLocale, TabsRef, TabsType } from './interface'; import type { TabNavListClassStruct } from './TabNavList'; import type { TabPanelProps } from './TabPanelList/TabPanel'; export interface TabsProps extends Omit, 'onChange' | 'children' | 'className'> { prefixCls?: string; className?: SemanticClassName<{ nav?: string; content?: string; panel?: TabPanelProps['className']; } & TabNavListClassStruct>; style?: React.CSSProperties; id?: string; items?: Tab[]; activeKey?: SafeKey; defaultActiveKey?: SafeKey; animated?: boolean | AnimatedConfig; renderTabBar?: RenderTabBar; tabBarExtraContent?: TabBarExtraContent; tabPosition?: TabPosition; destroyInactiveTabPane?: boolean; type?: TabsType; size?: 'default' | 'middle' | 'small'; centered?: boolean; renderTabContextMenu?: (tab: Tab) => MenuProps; addable?: boolean; closable?: boolean; renameAfterAdd?: boolean; onAdd?: (event: React.MouseEvent | React.KeyboardEvent) => void | string | Promise; onClose?: (key: SafeKey, e: React.MouseEvent | React.KeyboardEvent) => void; onRename?: (key: SafeKey, name: string) => void; onChange?: (activeKey: SafeKey) => void; onTabClick?: (activeKey: SafeKey, e: React.KeyboardEvent | React.MouseEvent) => void; onTabScroll?: OnTabScroll; getPopupContainer?: (node: HTMLElement) => HTMLElement; locale?: TabsLocale; icons?: { add?: React.ReactNode; close?: React.ReactNode; more?: React.ReactNode; }; more?: MoreProps; indicator?: { size?: GetIndicatorSize; align?: 'start' | 'center' | 'end'; }; } declare const Tabs: React.ForwardRefExoticComponent>; export default Tabs;