import * as React from 'react'; import * as Popper from 'popper.js'; import { CSSModule } from './index'; interface TooltipChildrenRenderProps { scheduleUpdate: () => void; } export type TooltipChildren = | ((props: TooltipChildrenRenderProps) => React.ReactNode) | React.ReactNode; export interface UncontrolledTooltipProps extends React.HTMLAttributes { [key: string]: any; target: string | HTMLElement | React.RefObject; container?: string | HTMLElement | React.RefObject; delay?: number | { show: number; hide: number }; popperClassName?: string; innerClassName?: string; autohide?: boolean; placement?: Popper.Placement; modifiers?: Popper.Modifiers; positionFixed?: boolean; cssModule?: CSSModule; fade?: boolean; flip?: boolean; children?: TooltipChildren; } export interface TooltipProps extends UncontrolledTooltipProps { toggle?: React.MouseEventHandler | (() => void); isOpen?: boolean; } declare class Tooltip extends React.Component {} export default Tooltip;