import React, { ComponentType } from 'react'; import { RcTooltipProps } from '../Tooltip'; declare type WithTooltipProps

= { /** title on list root */ title?: RcTooltipProps['title'] | (P extends { title: infer T; } ? T : never); /** html native title or not, default `false` */ useRcTooltip?: boolean; /** props for pass into `RcTooltip` when useRcTooltip is `true` */ TooltipProps?: Partial; } & Omit; /** * Make a component can be use with `RcTooltip` and Tooltip Props */ declare function withTooltip(Component: ComponentType): React.ForwardRefExoticComponent> & React.RefAttributes>; export { withTooltip }; export type { WithTooltipProps };