import React from 'react'; import type { TabsProps as AntTabsProps, TabsPosition as AntTabsPosition, TabsRef } from 'antd/es/tabs'; import type { Tab as AntTab } from 'rc-tabs/es/interface'; import { genTabsStyle } from './style'; import TabPane from './TabPane'; import type { TabPaneProps } from './TabPane'; import type { BadgeProps } from '../badge'; export * from 'antd/es/tabs'; export type { TabPaneProps }; type BadgeType = BadgeProps | BadgeProps['count']; export interface AntTabOptional extends Omit { key?: string; label?: React.ReactNode; } export type Tab = { /** @deprecated please use `badge` instead */ tag?: React.ReactNode; divider?: boolean; badge?: BadgeType; } & (AntTab | AntTabOptional); export interface TabsProps extends Omit { divider?: boolean; items?: Tab[]; } export type TabsPosition = AntTabsPosition; type CompoundedComponent = React.ForwardRefExoticComponent> & { TabPane: typeof TabPane; genTabsStyle: typeof genTabsStyle; }; declare const Tabs: CompoundedComponent; export default Tabs;