import { EventEmitter, OnInit, OnDestroy, Injector, Renderer2, ElementRef, TemplateRef, ViewContainerRef, ComponentFactoryResolver, NgZone } from '@angular/core'; import { FishPopoverConfig } from './popover-config'; export declare class FishPopoverWindow { placement: 'top' | 'bottom' | 'left' | 'right'; title: string; id: string; } /** * A lightweight, extensible directive for fancy popover creation. */ export declare class FishPopover implements OnInit, OnDestroy { private _elementRef; private _renderer; /** * Content to be displayed as popover. */ fishPopover: string | TemplateRef; /** * Title of a popover. */ popoverTitle: string; /** * Placement of a popover. 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 popover should be appended to. * Currently only supports "body". */ container: string; /** * Emits an event when the popover is shown */ shown: EventEmitter<{}>; /** * Emits an event when the popover is hidden */ hidden: EventEmitter<{}>; private _fishPopoverWindowId; private _popupService; private _windowRef; private _unregisterListenersFn; private _zoneSubscription; constructor(_elementRef: ElementRef, _renderer: Renderer2, injector: Injector, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, config: FishPopoverConfig, ngZone: NgZone); /** * Opens an element’s popover. This is considered a “manual” triggering of the popover. * The context is an optional value to be injected into the popover template when it is created. */ open(context?: any): void; /** * Closes an element’s popover. This is considered a “manual” triggering of the popover. */ close(): void; /** * Toggles an element’s popover. This is considered a “manual” triggering of the popover. */ toggle(): void; /** * Returns whether or not the popover is currently being shown */ isOpen(): boolean; ngOnInit(): void; ngOnDestroy(): void; }