/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { InjectionToken, ɵConsole as Console } from '@angular/core'; import { EventManagerPlugin } from './event_manager'; /** * A DI token that you can use to provide{@link HammerGestureConfig} to Angular. Use it to configure * Hammer gestures. * * @experimental */ export declare const HAMMER_GESTURE_CONFIG: InjectionToken; export interface HammerInstance { on(eventName: string, callback?: Function): void; off(eventName: string, callback?: Function): void; } /** * @experimental */ export declare class HammerGestureConfig { events: string[]; overrides: { [key: string]: Object; }; options?: { cssProps?: any; domEvents?: boolean; enable?: boolean | ((manager: any) => boolean); preset?: any[]; touchAction?: string; recognizers?: any[]; inputClass?: any; inputTarget?: EventTarget; }; buildHammer(element: HTMLElement): HammerInstance; } export declare class HammerGesturesPlugin extends EventManagerPlugin { private _config; private console; constructor(doc: any, _config: HammerGestureConfig, console: Console); supports(eventName: string): boolean; addEventListener(element: HTMLElement, eventName: string, handler: Function): Function; isCustomEvent(eventName: string): boolean; }