import React from 'react'; import type { SegmentedProps as AntSegmentedProps, SegmentedLabeledOption as AntSegmentedLabeledOption } from 'antd/es/segmented'; import type { EllipsisConfig } from '../typography'; import type { BadgeProps } from '../badge'; import type { SegmentedRawOption } from 'rc-segmented'; export * from 'antd/es/segmented'; type BadgeType = BadgeProps | BadgeProps['count']; export type SegmentedLabeledOption = AntSegmentedLabeledOption & { icon?: React.ReactNode; ellipsis?: EllipsisConfig; badge?: BadgeType; }; export interface SegmentedProps extends Omit { options: (SegmentedRawOption | SegmentedLabeledOption)[]; } declare const Segmented: React.ForwardRefExoticComponent>; export default Segmented;