import * as React from 'react'; import { TooltipProps as RcTooltipProps } from 'rc-tooltip/lib/Tooltip'; import { placements as Placements } from 'rc-tooltip/lib/placements'; import { AdjustOverflow } from './placements'; import { ElementOf, LiteralUnion } from './../../wui-core/src/utils/type'; import type { RenderFunction } from '../../wui-core/src/utils/createAntdUtils'; import type { BaseProps } from '../../wui-core/src/iCore'; export declare const presetColorTypes: ["pink", "red", "yellow", "orange", "cyan", "green", "blue", "purple", "geekblue", "magenta", "volcano", "gold", "lime"]; export type TooltipPlacement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom'; export type PresetColorType = ElementOf; export interface TooltipProps extends Omit, BaseProps { color?: LiteralUnion; direction?: 'rtl' | 'ltr'; placement?: TooltipPlacement; builtinPlacements?: typeof Placements; openClassName?: string; overlayMaxHeight?: boolean; arrowPointAtCenter?: boolean; autoAdjustOverflow?: boolean | AdjustOverflow; delay?: number; show?: boolean; open?: boolean; defaultOpen?: boolean; rootClose?: boolean; maskClosable?: boolean; inverse?: boolean; hideArrow?: boolean; onOpenChange?: RcTooltipProps['onVisibleChange']; onHide?: (visible: boolean) => void; onClick?: React.MouseEventHandler; onMouseLeave?: React.MouseEventHandler; onMouseOut?: React.MouseEventHandler; onMouseEnter?: React.MouseEventHandler; container?: React.ReactNode | RenderFunction; getPopupContainer?: React.ReactNode | RenderFunction; getTooltipContainer?: (node: HTMLElement) => HTMLElement; getContextPopupContainer?: React.ReactNode | RenderFunction; overlay?: string | React.ReactNode | RenderFunction; title?: string | React.ReactNode | RenderFunction; }