import React, { ForwardedRef, ReactNode } from 'react'; import { SharedPopoverProps } from '~/components'; export interface TooltipProps extends SharedPopoverProps { /** * Text or component to show when label is active */ label: ReactNode | string; /** * Target child to wrap label display */ children: ReactNode; /** * Control Tooltip state yourself */ opened?: boolean; /** * Delay before showing tooltip */ delay?: number; /** * Disable tooltip */ disabled?: boolean; /** * Set specific tooltip width */ width?: number | 'auto'; /** * Escape-hatch to allow pointer-events */ allowPointerEvents?: boolean; /** * Use with multi-line tooltip text */ wrapLines?: boolean; /** * Triggers when the mouse enters the target component bounding box */ onMouseEnter?: () => void; /** * Triggers when the mouse leaves the target component bounding box */ onMouseLeave?: () => void; /** * Forward a reference to the tooltip itself */ tooltipRef?: ForwardedRef; /** * useEffect dependencies to force update tooltip position */ positionDependencies?: any[]; /** * Whether to render the target element in a Portal */ disablePortal?: boolean; } export declare const Tooltip: React.ForwardRefExoticComponent>; //# sourceMappingURL=Tooltip.d.ts.map