import { OnInit, OnDestroy, EventEmitter, ElementRef } from '@angular/core'; export declare class ClickOutsideDirective implements OnInit, OnDestroy { private element; private listening; private clickSubscription; clickOutside: EventEmitter; /** * Default constructor. * * @param element The element that the directive has been added to. */ constructor(element: ElementRef); /** * Gets triggered when the component is initialized. */ ngOnInit(): void; /** * Get triggered when the component is destroyed. */ ngOnDestroy(): void; /** * Checks a global click. * * @param event The mouse event. */ private onGlobalClick(event); /** * Checks if the node is a descendant. * * @param parent The parent element. * @param child The child element. * * @returns If an element is a descendant. */ private isDescendant(parent, child); }