import { ElementRef, EventEmitter, OnInit, OnDestroy, ViewContainerRef } from '@angular/core'; import { HcPopComponent } from '../popover.component'; import { HcPopoverAnchoringService } from '../popover-anchoring.service'; import { HcPopoverOpenOptions, HcPopoverTrigger } from '../types'; import { PopoverNotificationService } from '../notification.service'; export declare class HcPopoverAnchorDirective implements OnInit, OnDestroy { _elementRef: ElementRef; private _viewContainerRef; _anchoring: HcPopoverAnchoringService; /** Reference to the popover instance. */ attachedPopover: HcPopComponent; private _attachedPopover; /** Trigger event to toggle the popover. *Defaults to `"click"`.* * Accepts `click`, `mousedown`, `hover`, `rightclick`, or `none`. * Note: if "hover" is selected, the backdrop for the popover will be disabled. */ trigger: HcPopoverTrigger; private _trigger; /** Object or value that can be passed into the popover to customize its content */ context: any; /** Emits when the popover is opened. */ popoverOpened: EventEmitter; /** Emits when the popover is closed. */ popoverClosed: EventEmitter; /** Instance of notification service. Will be undefined until attached to a popover. */ _notifications: PopoverNotificationService; /** Emits when the directive is destroyed. */ private _onDestroy; constructor(_elementRef: ElementRef, _viewContainerRef: ViewContainerRef, _anchoring: HcPopoverAnchoringService); ngOnInit(): void; ngOnDestroy(): void; _showOrHideOnClick($event: MouseEvent): void; _showOrHideOnMouseOver($event: MouseEvent): void; _showOrHideRightClick($event: MouseEvent): boolean; _showOnHover($event: MouseEvent): void; _hideOnLeave($event: MouseEvent): void; /** Gets whether the popover is presently open. */ isPopoverOpen(): boolean; /** Toggles the popover between the open and closed states. */ togglePopover(): void; /** Opens the popover. */ openPopover(options?: HcPopoverOpenOptions): void; /** Closes the popover. */ closePopover(value?: any): void; /** Realign the popover to the anchor. */ realignPopover(): void; /** Get a reference to the anchor element. */ getElement(): ElementRef; /** Throws an error if the popover instance is not provided. */ private _validateAttachedPopover; /** Throws an error if the trigger is not a valid HcPopoverTrigger. */ private _validateTrigger; /** Dispatch a notification to the notification service, if possible. */ private _dispatchConfigNotification; }