import { InjectionToken } from '@angular/core'; import { HammerGestureConfig } from '@angular/platform-browser'; import { VdlCommonModule } from '../common-behaviors/common-module'; import { HammerInstance, HammerOptions } from './gesture-annotations'; /** * Injection token that can be used to provide options to the Hammerjs instance. * More info at http://hammerjs.github.io/api/. */ export declare const VDL_HAMMER_OPTIONS: InjectionToken; export declare class GestureConfig extends HammerGestureConfig { private _hammerOptions; private _hammer; events: string[]; constructor(_hammerOptions?: HammerOptions, commonModule?: VdlCommonModule); /** * Builds Hammer instance manually to add custom recognizers that match the VdlCerial Design spec. * * Our gesture names come from the VdlCerial Design gestures spec: * https://www.google.com/design/spec/patterns/gestures.html#gestures-touch-mechanics * * More information on default recognizers can be found in Hammer docs: * http://hammerjs.github.io/recognizer-pan/ * http://hammerjs.github.io/recognizer-press/ * * @param element Element to which to assign the new HammerJS gestures. * @returns Newly-created HammerJS instance. */ buildHammer(element: HTMLElement): HammerInstance; /** Creates a new recognizer, without affecting the default recognizers of HammerJS */ private _createRecognizer(base, options, ...inheritances); }