import type { FunctionComponent, ReactNode } from 'react'; import type { Modifier } from 'react-popper'; interface ChildrenProps { /** * Pass these attributes as props to the element that the tooltip is for. */ ariaAttributes: { 'aria-describedby'?: string; }; /** * Call this function any time tooltip should be hidden. * Usually it will be onMouseLeave / onMouseOut / onBlur. */ onHide: () => void; /** * Call this function any time tooltip should be shown. * Usually it will be onMouseEnter / onMouseOver / onFocus. */ onShow: () => void; /** * Set the reference to the HTML element the tooltip should be positioned against. */ setReferenceElement: (referenceElement: HTMLElement | null) => void; } export interface Props { autoUpdatePosition?: boolean; children: (props: ChildrenProps) => ReactNode; className?: string; defaultShow?: boolean; enabled?: boolean; flip?: Modifier<'flip'>; hideDelay?: number; offset?: Modifier<'offset'>; placement?: 'top' | 'right' | 'bottom' | 'left'; preventOverflow?: Modifier<'preventOverflow'>; showDelay?: number; tooltip?: ReactNode; } export declare const Tooltip: FunctionComponent; export {};