import { EventEmitter, OnChanges, OnInit } from '@angular/core'; import { KitAnchor } from '../kit-anchor/meta'; import { KitOutsideClickService } from './kit-outside-click.service'; /** * Emitted when user clicks not on current element. * * * ### Usage * ```html *
* ``` * * `outside()` method will be called on any click except at this `div` and his children. * * #### Skip * * You can define additional elements to skip: * * ```html * * *
*
* ``` * * Use `kitAnchor` to skip components: * * ```html * *
*
* ``` * * * ### Example * * * collection:date-picker - * [sources](https://github.com/ngx-kit/ngx-kit/tree/master/packages/collection/lib/ui-date-picker), * [demo](http://ngx-kit.com/collection/module/ui-date-picker) */ export declare class KitOutsideClickDirective implements OnInit, OnChanges { private service; anchor: KitAnchor; /** * Define elements that are not considered as outside. */ skip: KitAnchor | KitAnchor[]; kitOutsideClick: EventEmitter; constructor(service: KitOutsideClickService); ngOnInit(): void; ngOnChanges(): void; }