import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { Overlay, OverlayPositionBuilder, OverlayRef } from '@angular/cdk/overlay'; import { TooltipContainerComponent } from './tooltip-container.component'; export declare class TooltipDirective implements OnInit, OnDestroy { private overlay; private overlayPositionBuilder; private elementRef; /** Content of the tooltip */ content: string; /** Position of the tooltip relative to the origin */ position: string; /** The delay before showing the tooltip */ showDelay: number; /** The delay before hiding the tooltip */ hideDelay: number; /** Whether the tooltip is disabled */ disabled: boolean; /** Emits when the tooltip is done showing */ shown: EventEmitter; /** Emits when the tooltip is done hiding */ hidden: EventEmitter; /** Subject that notifies when the directive is destroyed */ private destroyed$; /** Reference to the tooltip overlay */ private overlayRef; /** The component portal into which the tooltip will be loaded. */ private componentPortal; /** Reference to the tooltip overlay */ private componentInstance; /** Connected tooltip position relative to the origin */ private connectedPosition; /** Timeout id for the show delay */ private showTimeout; /** Timeout id for the hide delay */ private hideTimeout; constructor(overlay: Overlay, overlayPositionBuilder: OverlayPositionBuilder, elementRef: ElementRef); onMouseEnter(): void; onMouseLeave(): void; ngOnInit(): void; /** * Shows the tooltip. */ show(delay?: number): void; /** * Hides the tooltip. */ hide(delay?: number): void; /** * Whether the tooltip components is (busy) showing. */ get isShowing(): boolean; /** * Attaches a new tooltip component. */ attach(): TooltipContainerComponent; /** * Detaches the current tooltip component. */ detach(): void; /** * Creates a new tooltip overlay. */ createOverlay(): OverlayRef; /** * Invoked when the directive is destroyed. */ ngOnDestroy(): void; }