import { ReactElement, ReactNode } from 'react'; export interface TooltipProps { children: ReactNode; content: ReactNode | (() => ReactNode); placement?: 'top' | 'bottom' | 'left' | 'right'; alignment?: 'center' | 'start' | 'end'; coloring?: 'light' | 'dark' | 'warning' | 'error'; padding?: 'small' | 'none'; textSize?: 'xs' | 's' | 'none'; maxWidth?: 'small' | 'medium' | 'none'; disabled?: boolean; ariaLabel?: string; } /** * Wrap a trigger element so that when it is hovered or focused a tooltip * appears. */ declare function Tooltip({ placement, alignment, coloring, disabled, padding, textSize, maxWidth, content, children, ariaLabel }: TooltipProps): ReactElement; declare namespace Tooltip { var propTypes: { /** * The trigger element. */ children: any; /** * The tooltip content. This can either be a string, valid JSX, or a function * returning either. */ content: any; /** * Placement of the tooltip in relation to the trigger element. */ placement: any; /** * `'center'`, `'start'`, `'end'` Alignment of the tooltip's edge in relation to the trigger element. */ alignment: any; /** * If `true`, the tooltip will not appear. */ disabled: any; /** * `'light'`, `'dark'`, `'warning'`, or `'error'`. */ coloring: any; /** * `'xs'` (extra small), `'s'` (small), or `'none'` (no size class). */ textSize: any; /** * `'small'`, `'medium'`, or `'none'` (no `wmax*` class). */ maxWidth: any; /** * `'small'` or `'none'`. */ padding: any; /** * Optionally provide a description of the tooltip content. By default, * screenreaders will announce the content inside the component. */ ariaLabel: any; }; } export default Tooltip;