import "./Tooltip.css"; import { ComponentProps, ElementType, ForwardedRef, ReactElement, ReactNode, SyntheticEvent } from "react"; export interface InnerTooltipTriggerProps { /** * Whether or not to show the tooltip. */ open?: boolean | null; /** * The initial value of `open` when in auto controlled mode. */ defaultOpen?: boolean; /** * Position of the tooltip element related to the trigger. */ position?: "auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "right" | "right-start" | "right-end" | "left" | "left-start" | "left-end"; /** * Called when the open state change. * @param {SyntheticEvent} event - React's original event. * @param {boolean} isOpen - Indicate if the tooltip is visible. * @returns {void} */ onOpenChange?: (event: SyntheticEvent, isOpen: boolean) => void; /** * Whether or not the tooltip should be disabled, independent from the trigger. */ disabled?: boolean; /** * Whether or not the tooltip element can flip when it will overflow it's boundary area. */ allowFlip?: boolean; /** * Whether or not the tooltip element position can change to prevent it from being cut off so that it stays visible within its boundary area. */ allowPreventOverflow?: boolean; /** * The z-index of the popover element. */ zIndex?: number; /** * An HTML element type or a custom React element type to render as. */ as?: ElementType; /** * React children. */ children: ReactNode; /** * @ignore */ containerElement?: HTMLElement; /** * @ignore */ forwardedRef: ForwardedRef; } export declare function parseTooltipTrigger(children: ReactNode): [ReactElement>, ReactElement>]; export declare function InnerTooltipTrigger({ open, defaultOpen, position: positionProp, onOpenChange, disabled, allowFlip, allowPreventOverflow, containerElement, zIndex, as, children, forwardedRef, ...rest }: InnerTooltipTriggerProps): JSX.Element; export declare const TooltipTrigger: import("../../shared").OrbitComponent; export declare type TooltipTriggerProps = ComponentProps;