import { Overlay, ScrollDispatcher, ViewportRuler } from '@angular/cdk/overlay'; import { ElementRef, EventEmitter, NgZone, ViewContainerRef } from '@angular/core'; import { Subscription } from 'rxjs'; import { MtnaPopoverConfig } from './popover-config.model'; import { MtnaPopoverComponent } from './popover.component'; import * as i0 from "@angular/core"; /** * Directive that attaches an MTNA designed popover to the host element. Used mostly for short * descriptions or definitions. * * @author Nick Richards */ export declare class MtnaPopoverDirective { private elementRef; private ngZone; private overlay; private scrollDispatcher; private viewContainerRef; private viewportRuler; static ngAcceptInputType_ariaLabel: string | null | undefined; get config(): MtnaPopoverConfig | null | undefined; set config(config: MtnaPopoverConfig | null | undefined); private _config; /** Sets aria-label on the popover. Defaults to 'Open information'. */ get openAriaLabel(): string; set openAriaLabel(openAriaLabel: string); private _openAriaLabel; get closeAriaLabel(): string; set closeAriaLabel(closeAriaLabel: string); private _closeAriaLabel; /** Emitted when the popover is closed. */ closedPopover: EventEmitter; /** the popover component reference */ _popoverInstance: MtnaPopoverComponent | null | undefined; /** Overlay reference for the popover */ private overlayRef; private _popoverId; subscription: Subscription | undefined; constructor(elementRef: ElementRef, ngZone: NgZone, overlay: Overlay, scrollDispatcher: ScrollDispatcher, viewContainerRef: ViewContainerRef, viewportRuler: ViewportRuler); /** * Closes the popover. */ closePopover(): void; /** * Creates the overlay for the popover and sets up the scroll reposition strategy. */ private createOverlay; /** * Called when the popover will be displayed. Listens for the popoverComponent's * event emitter when component is closed and then emits a closedPopover event. */ private loadComponent; private setPositionStrategy; /** * Called to show the popover. */ showPopover(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }