import type { Observable } from 'rxjs'; import { ElementRef, OnDestroy } from '@angular/core'; import * as i0 from "@angular/core"; /** * A service that shares the `global` events required for the `uiClickOutside` directive. * By sharing the event stream, we end up adding only one event listener rather than {N}. * * @export */ export declare class UiClickOutsideService implements OnDestroy { /** * The `global` event handler for `click` events. * */ source: Observable; private _destroyed$; /** * @ignore */ constructor(document: any); /** * @ignore */ ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * A directive that emits when a click event occurs outside of the decorated element. * * @export */ export declare class UiClickOutsideDirective { private _clickService; /** * Emits the original `MouseEvent` when the click occurs outside of the decorated element. * */ uiClickOutside: Observable; /** * @ignore */ constructor(ref: ElementRef, _clickService: UiClickOutsideService); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }