import { EventEmitter, OnInit, OnDestroy, Injector, Renderer2, ElementRef, TemplateRef, ViewContainerRef, ComponentFactoryResolver, NgZone } from '@angular/core'; import { FishTooltipConfig } from './tooltip-config'; export declare class FishTooltipWindow { placement: 'top' | 'bottom' | 'left' | 'right'; id: string; } /** * A lightweight, extensible directive for fancy tooltip creation. */ export declare class FishTooltip implements OnInit, OnDestroy { private _elementRef; private _renderer; /** * Placement of a tooltip. Accepts: "top", "bottom", "left", "right" */ placement: 'top' | 'bottom' | 'left' | 'right'; /** * Specifies events that should trigger. Supports a space separated list of event names. */ triggers: string; /** * A selector specifying the element the tooltip should be appended to. * Currently only supports "body". */ container: string; /** * Emits an event when the tooltip is shown */ shown: EventEmitter<{}>; /** * Emits an event when the tooltip is hidden */ hidden: EventEmitter<{}>; private _fishTooltip; private _fishTooltipWindowId; private _popupService; private _windowRef; private _unregisterListenersFn; private _zoneSubscription; constructor(_elementRef: ElementRef, _renderer: Renderer2, injector: Injector, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, config: FishTooltipConfig, ngZone: NgZone); /** * Content to be displayed as tooltip. If falsy, the tooltip won't open. */ fishTooltip: string | TemplateRef; /** * Opens an element’s tooltip. This is considered a “manual” triggering of the tooltip. * The context is an optional value to be injected into the tooltip template when it is created. */ open(context?: any): void; /** * Closes an element’s tooltip. This is considered a “manual” triggering of the tooltip. */ close(): void; /** * Toggles an element’s tooltip. This is considered a “manual” triggering of the tooltip. */ toggle(): void; /** * Returns whether or not the tooltip is currently being shown */ isOpen(): boolean; ngOnInit(): void; ngOnDestroy(): void; }