import { TooltipProps as MuiTooltipProps } from '@material-ui/core'; import { ChangeEvent, ReactElement, ReactNode } from 'react'; export type TooltipProps = { /** * Tooltip title. Zero-length titles string are never displayed. */ title: ReactNode; /** * Element to position a tooltip to. * * ⚠️ Has to be a *single* reffable child (use `forwardRef` for custom components) */ children: ReactElement; isFullScreen?: boolean; disableFocusListener?: boolean; /** * Do not respond to hover events. */ disableHoverListener?: boolean; /** * Do not respond to long press touch events. */ disableTouchListener?: boolean; /** * The number of milliseconds to wait before showing the tooltip. * This prop won't impact the enter touch delay (`enterTouchDelay`). */ enterDelay?: number; /** * The number of milliseconds to wait before showing the tooltip when one was already recently opened. */ enterNextDelay?: number; /** * The number of milliseconds a user must touch the element before showing the tooltip. */ enterTouchDelay?: number; /** * This prop is used to help implement the accessibility logic. * If you don't provide this prop. It falls back to a randomly generated id. */ id?: string; /** * Makes a tooltip interactive, i.e. will not close when the user * hovers over the tooltip before the `leaveDelay` is expired. */ interactive?: boolean; /** * The number of milliseconds to wait before hiding the tooltip. * This prop won't impact the leave touch delay (`leaveTouchDelay`). */ leaveDelay?: number; /** * The number of milliseconds after the user stops touching an element before hiding the tooltip. */ leaveTouchDelay?: number; /** * Callback fired when the component requests to be closed. */ onClose?: (event: ChangeEvent<{}>) => void; /** * Callback fired when the component requests to be open. */ onOpen?: (event: ChangeEvent<{}>) => void; /** * If `true`, the tooltip is shown. */ open?: boolean; /** * Tooltip placement. */ placement?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'; classes?: Record; } & Omit; export declare function Tooltip({ isFullScreen, ...tooltipProps }: TooltipProps): JSX.Element; //# sourceMappingURL=Tooltip.d.ts.map