import { AriaPositionProps, Placement, PlacementAxis, PositionProps } from 'react-aria'; import { ContextValue, RenderProps } from '../../utils'; import { OverlayTriggerProps, TooltipTriggerState } from 'react-stately'; import { RefObject } from 'react'; import { AriaLabelingProps } from '@react-types/shared'; export interface TooltipRenderProps { /** * The placement of the tooltip relative to the trigger. * @selector [data-placement="left | right | top | bottom"] */ placement: PlacementAxis | null; /** * Whether the tooltip is currently entering. Use this to apply animations. * @selector [data-entering] */ isEntering: boolean; /** * Whether the tooltip is currently exiting. Use this to apply animations. * @selector [data-exiting] */ isExiting: boolean; /** * State of the tooltip. */ state: TooltipTriggerState; } export declare const TooltipContext: import("react").Context>; export interface TooltipProps extends PositionProps, Pick, OverlayTriggerProps, AriaLabelingProps, RenderProps { /** * The ref for the element which the tooltip positions itself with respect to. * * When used within a TooltipTrigger this is set automatically. It is only required when used standalone. */ triggerRef?: RefObject; /** * Whether the tooltip is currently performing an entry animation. */ isEntering?: boolean; /** * Whether the tooltip is currently performing an exit animation. */ isExiting?: boolean; /** * The container element in which the overlay portal will be placed. This may have unknown behavior depending on where it is portalled to. * @default document.body */ UNSTABLE_portalContainer?: Element; /** * The placement of the tooltip with respect to the trigger. * @default 'top' */ placement?: Placement; ref?: RefObject; } declare const Tooltip: { ({ UNSTABLE_portalContainer, ref, ...props }: TooltipProps): import("react/jsx-runtime").JSX.Element | null; displayName: string; }; export { Tooltip }; //# sourceMappingURL=Tooltip.d.ts.map