import { KitPlatformService } from '../kit-platform/kit-platform.service'; /** * Service for global events handling. * * ### Example * * Handle `esc` keydown globally: * * ```typescript * import { keyEscape, KitEventManagerService } from '@ngx-kit/core'; * ... * constructor(private em: KitEventManagerService) { * } * ... * // subscribe * const escUnsub = this.em.listenGlobal('keydown', (event: KeyboardEvent) => { * if (event.keyCode === keyEscape) { * // do the job * } * }, true); * ... * // unsubscribe * escUnsub(); * ``` */ export declare class KitEventManagerService { private platform; constructor(platform: KitPlatformService); /** * Listen event on the global root object. * * Reason: native Angular EventManager does not provide event listener with useCapture param. */ listenGlobal(eventName: string, handler: Function, useCapture?: boolean): Function; /** * Get array of objects visited by event. */ getEventPath(event: Event): EventTarget[]; }