import Component from '@glimmer/component'; export declare type ToolTipPositions = 'top' | 'right' | 'bottom' | 'left'; export declare type ToolTipDelay = 'regular' | 'long'; interface ToolTipStyles { top: string; left: string | 'auto'; right?: string | 'auto'; opacity?: string; visibility?: 'hidden'; } declare const displayToClassNameMap: { inlineBlock: undefined; block: string; }; declare type EuiTooltipArgs = { /** * Passes onto the the trigger. */ anchorClassName?: string; /** * Passes onto the tooltip itself, not the trigger. */ className?: string; /** * The main content of your tooltip. */ content?: Component; /** * Common display alternatives for the anchor wrapper */ display?: keyof typeof displayToClassNameMap; /** * Delay before showing tooltip. Good for repeatable items. */ delay: ToolTipDelay; /** * An optional title for your tooltip. */ title?: Component; /** * Unless you provide one, this will be randomly generated. */ id?: string; /** * Suggested position. If there is not enough room for it this will be changed. */ position: ToolTipPositions; /** * If supplied, called when mouse movement causes the tool tip to be * hidden. */ onMouseOut?: (event: MouseEvent) => void; }; export default class EuiToolTip extends Component { anchor: null | HTMLElement; popover: null | HTMLElement; position: ToolTipPositions; delay: ToolTipDelay; visible: boolean; calculatedPosition: ToolTipPositions; toolTipStyles: ToolTipStyles; arrowStyles: undefined | { left: string; top: string; }; id: string; private timeoutId?; clearAnimationTimeout(): void; visibleDidUpdate(value: boolean): void; willDestroy(): void; testAnchor(): void; didInsertAnchor(ref: HTMLElement): void; setPopoverRef(ref: HTMLElement): void; showToolTip(): void; positionToolTip(): void; hideToolTip(): void; hasFocusMouseMoveListener(): void; onKeyUp(event: KeyboardEvent): void; onMouseOut(event: MouseEvent): void; } export {};