UNPKG

28.4 kBTypeScriptView Raw
1/**
2 * @license Angular v9.1.4
3 * (c) 2010-2020 Google LLC. https://angular.io/
4 * License: MIT
5 */
6
7import { ComponentRef } from '@angular/core';
8import { DebugElement } from '@angular/core';
9import { DebugNode } from '@angular/core';
10import { ErrorHandler } from '@angular/core';
11import { GetTestability } from '@angular/core';
12import { InjectionToken } from '@angular/core';
13import { Injector } from '@angular/core';
14import { ModuleWithProviders } from '@angular/core';
15import { NgProbeToken } from '@angular/core';
16import { NgZone } from '@angular/core';
17import { OnDestroy } from '@angular/core';
18import { PlatformRef } from '@angular/core';
19import { Predicate } from '@angular/core';
20import { Provider } from '@angular/core';
21import { Renderer2 } from '@angular/core';
22import { RendererFactory2 } from '@angular/core';
23import { RendererType2 } from '@angular/core';
24import { Sanitizer } from '@angular/core';
25import { SecurityContext } from '@angular/core';
26import { StaticProvider } from '@angular/core';
27import { Testability } from '@angular/core';
28import { TestabilityRegistry } from '@angular/core';
29import { Type } from '@angular/core';
30import { Version } from '@angular/core';
31import { ɵConsole } from '@angular/core';
32import { ɵDomAdapter } from '@angular/common';
33import { ɵgetDOM } from '@angular/common';
34
35/**
36 * Exports required infrastructure for all Angular apps.
37 * Included by default in all Angular apps created with the CLI
38 * `new` command.
39 * Re-exports `CommonModule` and `ApplicationModule`, making their
40 * exports and providers available to all apps.
41 *
42 * @publicApi
43 */
44export declare class BrowserModule {
45 constructor(parentModule: BrowserModule | null);
46 /**
47 * Configures a browser-based app to transition from a server-rendered app, if
48 * one is present on the page.
49 *
50 * @param params An object containing an identifier for the app to transition.
51 * The ID must match between the client and server versions of the app.
52 * @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.
53 */
54 static withServerTransition(params: {
55 appId: string;
56 }): ModuleWithProviders<BrowserModule>;
57}
58
59/**
60 * NgModule to install on the client side while using the `TransferState` to transfer state from
61 * server to client.
62 *
63 * @publicApi
64 */
65export declare class BrowserTransferStateModule {
66}
67
68/**
69 * Predicates for use with {@link DebugElement}'s query functions.
70 *
71 * @publicApi
72 */
73export declare class By {
74 /**
75 * Match all nodes.
76 *
77 * @usageNotes
78 * ### Example
79 *
80 * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}
81 */
82 static all(): Predicate<DebugNode>;
83 /**
84 * Match elements by the given CSS selector.
85 *
86 * @usageNotes
87 * ### Example
88 *
89 * {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}
90 */
91 static css(selector: string): Predicate<DebugElement>;
92 /**
93 * Match nodes that have the given directive present.
94 *
95 * @usageNotes
96 * ### Example
97 *
98 * {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}
99 */
100 static directive(type: Type<any>): Predicate<DebugNode>;
101}
102
103/**
104 * Disables Angular tools.
105 *
106 * @publicApi
107 */
108export declare function disableDebugTools(): void;
109
110/**
111 * DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing
112 * values to be safe to use in the different DOM contexts.
113 *
114 * For example, when binding a URL in an `<a [href]="someValue">` hyperlink, `someValue` will be
115 * sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on
116 * the website.
117 *
118 * In specific situations, it might be necessary to disable sanitization, for example if the
119 * application genuinely needs to produce a `javascript:` style link with a dynamic value in it.
120 * Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`
121 * methods, and then binding to that value from the template.
122 *
123 * These situations should be very rare, and extraordinary care must be taken to avoid creating a
124 * Cross Site Scripting (XSS) security bug!
125 *
126 * When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as
127 * close as possible to the source of the value, to make it easy to verify no security bug is
128 * created by its use.
129 *
130 * It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that
131 * does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous
132 * code. The sanitizer leaves safe values intact.
133 *
134 * @security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in
135 * sanitization for the value passed in. Carefully check and audit all values and code paths going
136 * into this call. Make sure any user data is appropriately escaped for this security context.
137 * For more detail, see the [Security Guide](http://g.co/ng/security).
138 *
139 * @publicApi
140 */
141export declare abstract class DomSanitizer implements Sanitizer {
142 /**
143 * Sanitizes a value for use in the given SecurityContext.
144 *
145 * If value is trusted for the context, this method will unwrap the contained safe value and use
146 * it directly. Otherwise, value will be sanitized to be safe in the given context, for example
147 * by replacing URLs that have an unsafe protocol part (such as `javascript:`). The implementation
148 * is responsible to make sure that the value can definitely be safely used in the given context.
149 */
150 abstract sanitize(context: SecurityContext, value: SafeValue | string | null): string | null;
151 /**
152 * Bypass security and trust the given value to be safe HTML. Only use this when the bound HTML
153 * is unsafe (e.g. contains `<script>` tags) and the code should be executed. The sanitizer will
154 * leave safe HTML intact, so in most situations this method should not be used.
155 *
156 * **WARNING:** calling this method with untrusted user data exposes your application to XSS
157 * security risks!
158 */
159 abstract bypassSecurityTrustHtml(value: string): SafeHtml;
160 /**
161 * Bypass security and trust the given value to be safe style value (CSS).
162 *
163 * **WARNING:** calling this method with untrusted user data exposes your application to XSS
164 * security risks!
165 */
166 abstract bypassSecurityTrustStyle(value: string): SafeStyle;
167 /**
168 * Bypass security and trust the given value to be safe JavaScript.
169 *
170 * **WARNING:** calling this method with untrusted user data exposes your application to XSS
171 * security risks!
172 */
173 abstract bypassSecurityTrustScript(value: string): SafeScript;
174 /**
175 * Bypass security and trust the given value to be a safe style URL, i.e. a value that can be used
176 * in hyperlinks or `<img src>`.
177 *
178 * **WARNING:** calling this method with untrusted user data exposes your application to XSS
179 * security risks!
180 */
181 abstract bypassSecurityTrustUrl(value: string): SafeUrl;
182 /**
183 * Bypass security and trust the given value to be a safe resource URL, i.e. a location that may
184 * be used to load executable code from, like `<script src>`, or `<iframe src>`.
185 *
186 * **WARNING:** calling this method with untrusted user data exposes your application to XSS
187 * security risks!
188 */
189 abstract bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl;
190}
191
192/**
193 * Enabled Angular debug tools that are accessible via your browser's
194 * developer console.
195 *
196 * Usage:
197 *
198 * 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)
199 * 1. Type `ng.` (usually the console will show auto-complete suggestion)
200 * 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`
201 * then hit Enter.
202 *
203 * @publicApi
204 */
205export declare function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T>;
206
207/**
208 * The injection token for the event-manager plug-in service.
209 *
210 * @publicApi
211 */
212export declare const EVENT_MANAGER_PLUGINS: InjectionToken<ɵangular_packages_platform_browser_platform_browser_g[]>;
213
214/**
215 * An injectable service that provides event management for Angular
216 * through a browser plug-in.
217 *
218 * @publicApi
219 */
220export declare class EventManager {
221 private _zone;
222 private _plugins;
223 private _eventNameToPlugin;
224 /**
225 * Initializes an instance of the event-manager service.
226 */
227 constructor(plugins: ɵangular_packages_platform_browser_platform_browser_g[], _zone: NgZone);
228 /**
229 * Registers a handler for a specific element and event.
230 *
231 * @param element The HTML element to receive event notifications.
232 * @param eventName The name of the event to listen for.
233 * @param handler A function to call when the notification occurs. Receives the
234 * event object as an argument.
235 * @returns A callback function that can be used to remove the handler.
236 */
237 addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
238 /**
239 * Registers a global handler for an event in a target view.
240 *
241 * @param target A target for global event notifications. One of "window", "document", or "body".
242 * @param eventName The name of the event to listen for.
243 * @param handler A function to call when the notification occurs. Receives the
244 * event object as an argument.
245 * @returns A callback function that can be used to remove the handler.
246 */
247 addGlobalEventListener(target: string, eventName: string, handler: Function): Function;
248 /**
249 * Retrieves the compilation zone in which event listeners are registered.
250 */
251 getZone(): NgZone;
252}
253
254/**
255 * DI token for providing [HammerJS](http://hammerjs.github.io/) support to Angular.
256 * @see `HammerGestureConfig`
257 *
258 * @ngModule HammerModule
259 * @publicApi
260 */
261export declare const HAMMER_GESTURE_CONFIG: InjectionToken<HammerGestureConfig>;
262
263/**
264 * Injection token used to provide a {@link HammerLoader} to Angular.
265 *
266 * @publicApi
267 */
268export declare const HAMMER_LOADER: InjectionToken<HammerLoader>;
269
270/**
271 * An injectable [HammerJS Manager](http://hammerjs.github.io/api/#hammer.manager)
272 * for gesture recognition. Configures specific event recognition.
273 * @publicApi
274 */
275export declare class HammerGestureConfig {
276 /**
277 * A set of supported event names for gestures to be used in Angular.
278 * Angular supports all built-in recognizers, as listed in
279 * [HammerJS documentation](http://hammerjs.github.io/).
280 */
281 events: string[];
282 /**
283 * Maps gesture event names to a set of configuration options
284 * that specify overrides to the default values for specific properties.
285 *
286 * The key is a supported event name to be configured,
287 * and the options object contains a set of properties, with override values
288 * to be applied to the named recognizer event.
289 * For example, to disable recognition of the rotate event, specify
290 * `{"rotate": {"enable": false}}`.
291 *
292 * Properties that are not present take the HammerJS default values.
293 * For information about which properties are supported for which events,
294 * and their allowed and default values, see
295 * [HammerJS documentation](http://hammerjs.github.io/).
296 *
297 */
298 overrides: {
299 [key: string]: Object;
300 };
301 /**
302 * Properties whose default values can be overridden for a given event.
303 * Different sets of properties apply to different events.
304 * For information about which properties are supported for which events,
305 * and their allowed and default values, see
306 * [HammerJS documentation](http://hammerjs.github.io/).
307 */
308 options?: {
309 cssProps?: any;
310 domEvents?: boolean;
311 enable?: boolean | ((manager: any) => boolean);
312 preset?: any[];
313 touchAction?: string;
314 recognizers?: any[];
315 inputClass?: any;
316 inputTarget?: EventTarget;
317 };
318 /**
319 * Creates a [HammerJS Manager](http://hammerjs.github.io/api/#hammer.manager)
320 * and attaches it to a given HTML element.
321 * @param element The element that will recognize gestures.
322 * @returns A HammerJS event-manager object.
323 */
324 buildHammer(element: HTMLElement): HammerInstance;
325}
326
327declare interface HammerInstance {
328 on(eventName: string, callback?: Function): void;
329 off(eventName: string, callback?: Function): void;
330 destroy?(): void;
331}
332
333/**
334 * Function that loads HammerJS, returning a promise that is resolved once HammerJs is loaded.
335 *
336 * @publicApi
337 */
338export declare type HammerLoader = () => Promise<void>;
339
340/**
341 * Adds support for HammerJS.
342 *
343 * Import this module at the root of your application so that Angular can work with
344 * HammerJS to detect gesture events.
345 *
346 * Note that applications still need to include the HammerJS script itself. This module
347 * simply sets up the coordination layer between HammerJS and Angular's EventManager.
348 *
349 * @publicApi
350 */
351export declare class HammerModule {
352}
353
354/**
355 * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
356 *
357 * Example:
358 *
359 * ```
360 * const COUNTER_KEY = makeStateKey<number>('counter');
361 * let value = 10;
362 *
363 * transferState.set(COUNTER_KEY, value);
364 * ```
365 *
366 * @publicApi
367 */
368export declare function makeStateKey<T = void>(key: string): StateKey<T>;
369
370/**
371 * A service that can be used to get and add meta tags.
372 *
373 * @publicApi
374 */
375export declare class Meta {
376 private _doc;
377 private _dom;
378 constructor(_doc: any);
379 addTag(tag: MetaDefinition, forceCreation?: boolean): HTMLMetaElement | null;
380 addTags(tags: MetaDefinition[], forceCreation?: boolean): HTMLMetaElement[];
381 getTag(attrSelector: string): HTMLMetaElement | null;
382 getTags(attrSelector: string): HTMLMetaElement[];
383 updateTag(tag: MetaDefinition, selector?: string): HTMLMetaElement | null;
384 removeTag(attrSelector: string): void;
385 removeTagElement(meta: HTMLMetaElement): void;
386 private _getOrCreateElement;
387 private _setMetaElementAttributes;
388 private _parseSelector;
389 private _containsAttributes;
390}
391
392
393/**
394 * Represents a meta element.
395 *
396 * @publicApi
397 */
398export declare type MetaDefinition = {
399 charset?: string;
400 content?: string;
401 httpEquiv?: string;
402 id?: string;
403 itemprop?: string;
404 name?: string;
405 property?: string;
406 scheme?: string;
407 url?: string;
408} & {
409 [prop: string]: string;
410};
411
412/**
413 * @publicApi
414 */
415export declare const platformBrowser: (extraProviders?: StaticProvider[]) => PlatformRef;
416
417/**
418 * Marker interface for a value that's safe to use as HTML.
419 *
420 * @publicApi
421 */
422export declare interface SafeHtml extends SafeValue {
423}
424
425/**
426 * Marker interface for a value that's safe to use as a URL to load executable code from.
427 *
428 * @publicApi
429 */
430export declare interface SafeResourceUrl extends SafeValue {
431}
432
433/**
434 * Marker interface for a value that's safe to use as JavaScript.
435 *
436 * @publicApi
437 */
438export declare interface SafeScript extends SafeValue {
439}
440
441/**
442 * Marker interface for a value that's safe to use as style (CSS).
443 *
444 * @publicApi
445 */
446export declare interface SafeStyle extends SafeValue {
447}
448
449/**
450 * Marker interface for a value that's safe to use as a URL linking to a document.
451 *
452 * @publicApi
453 */
454export declare interface SafeUrl extends SafeValue {
455}
456
457/**
458 * Marker interface for a value that's safe to use in a particular context.
459 *
460 * @publicApi
461 */
462export declare interface SafeValue {
463}
464
465/**
466 * A type-safe key to use with `TransferState`.
467 *
468 * Example:
469 *
470 * ```
471 * const COUNTER_KEY = makeStateKey<number>('counter');
472 * let value = 10;
473 *
474 * transferState.set(COUNTER_KEY, value);
475 * ```
476 *
477 * @publicApi
478 */
479export declare type StateKey<T> = string & {
480 __not_a_string: never;
481};
482
483/**
484 * A service that can be used to get and set the title of a current HTML document.
485 *
486 * Since an Angular application can't be bootstrapped on the entire HTML document (`<html>` tag)
487 * it is not possible to bind to the `text` property of the `HTMLTitleElement` elements
488 * (representing the `<title>` tag). Instead, this service can be used to set and get the current
489 * title value.
490 *
491 * @publicApi
492 */
493export declare class Title {
494 private _doc;
495 constructor(_doc: any);
496 /**
497 * Get the title of the current HTML document.
498 */
499 getTitle(): string;
500 /**
501 * Set the title of the current HTML document.
502 * @param newTitle
503 */
504 setTitle(newTitle: string): void;
505}
506
507/**
508 * A key value store that is transferred from the application on the server side to the application
509 * on the client side.
510 *
511 * `TransferState` will be available as an injectable token. To use it import
512 * `ServerTransferStateModule` on the server and `BrowserTransferStateModule` on the client.
513 *
514 * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
515 * boolean, number, string, null and non-class objects will be serialized and deserialzied in a
516 * non-lossy manner.
517 *
518 * @publicApi
519 */
520export declare class TransferState {
521 private store;
522 private onSerializeCallbacks;
523 /**
524 * Get the value corresponding to a key. Return `defaultValue` if key is not found.
525 */
526 get<T>(key: StateKey<T>, defaultValue: T): T;
527 /**
528 * Set the value corresponding to a key.
529 */
530 set<T>(key: StateKey<T>, value: T): void;
531 /**
532 * Remove a key from the store.
533 */
534 remove<T>(key: StateKey<T>): void;
535 /**
536 * Test whether a key exists in the store.
537 */
538 hasKey<T>(key: StateKey<T>): boolean;
539 /**
540 * Register a callback to provide the value for a key when `toJson` is called.
541 */
542 onSerialize<T>(key: StateKey<T>, callback: () => T): void;
543 /**
544 * Serialize the current state of the store to JSON.
545 */
546 toJson(): string;
547}
548
549/**
550 * @publicApi
551 */
552export declare const VERSION: Version;
553
554export declare function ɵangular_packages_platform_browser_platform_browser_a(): ErrorHandler;
555
556export declare function ɵangular_packages_platform_browser_platform_browser_b(): any;
557
558export declare const ɵangular_packages_platform_browser_platform_browser_c: StaticProvider[];
559
560/**
561 * Factory to create Meta service.
562 */
563export declare function ɵangular_packages_platform_browser_platform_browser_d(): Meta;
564
565
566/**
567 * Factory to create Title service.
568 */
569export declare function ɵangular_packages_platform_browser_platform_browser_e(): Title;
570
571export declare function ɵangular_packages_platform_browser_platform_browser_f(doc: Document, appId: string): TransferState;
572
573export declare abstract class ɵangular_packages_platform_browser_platform_browser_g {
574 private _doc;
575 constructor(_doc: any);
576 manager: EventManager;
577 abstract supports(eventName: string): boolean;
578 abstract addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
579 addGlobalEventListener(element: string, eventName: string, handler: Function): Function;
580}
581
582/**
583 * In View Engine, support for Hammer gestures is built-in by default.
584 */
585export declare const ɵangular_packages_platform_browser_platform_browser_h: Provider[];
586
587export declare const ɵangular_packages_platform_browser_platform_browser_i: Provider[];
588
589export declare function ɵangular_packages_platform_browser_platform_browser_j(injector: Injector): ɵDomSanitizerImpl;
590
591export declare function ɵangular_packages_platform_browser_platform_browser_k(transitionId: string, document: any, injector: Injector): () => void;
592
593export declare const ɵangular_packages_platform_browser_platform_browser_l: StaticProvider[];
594
595export declare function ɵangular_packages_platform_browser_platform_browser_m(coreTokens: NgProbeToken[]): any;
596
597/**
598 * Providers which support debugging Angular applications (e.g. via `ng.probe`).
599 */
600export declare const ɵangular_packages_platform_browser_platform_browser_n: Provider[];
601
602/**
603 * Provides DOM operations in any browser environment.
604 *
605 * @security Tread carefully! Interacting with the DOM directly is dangerous and
606 * can introduce XSS risks.
607 */
608export declare abstract class ɵangular_packages_platform_browser_platform_browser_o extends ɵDomAdapter {
609 constructor();
610 supportsDOMEvents(): boolean;
611}
612
613/**
614 * @security Replacing built-in sanitization providers exposes the application to XSS risks.
615 * Attacker-controlled data introduced by an unsanitized provider could expose your
616 * application to XSS risks. For more detail, see the [Security Guide](http://g.co/ng/security).
617 * @publicApi
618 */
619export declare const ɵBROWSER_SANITIZATION_PROVIDERS: StaticProvider[];
620
621export declare const ɵBROWSER_SANITIZATION_PROVIDERS__POST_R3__: never[];
622
623/**
624 * A `DomAdapter` powered by full browser DOM APIs.
625 *
626 * @security Tread carefully! Interacting with the DOM directly is dangerous and
627 * can introduce XSS risks.
628 */
629export declare class ɵBrowserDomAdapter extends ɵangular_packages_platform_browser_platform_browser_o {
630 static makeCurrent(): void;
631 getProperty(el: Node, name: string): any;
632 log(error: string): void;
633 logGroup(error: string): void;
634 logGroupEnd(): void;
635 onAndCancel(el: Node, evt: any, listener: any): Function;
636 dispatchEvent(el: Node, evt: any): void;
637 remove(node: Node): Node;
638 getValue(el: any): string;
639 createElement(tagName: string, doc?: Document): HTMLElement;
640 createHtmlDocument(): HTMLDocument;
641 getDefaultDocument(): Document;
642 isElementNode(node: Node): boolean;
643 isShadowRoot(node: any): boolean;
644 getGlobalEventTarget(doc: Document, target: string): EventTarget | null;
645 getHistory(): History;
646 getLocation(): Location;
647 getBaseHref(doc: Document): string | null;
648 resetBaseElement(): void;
649 getUserAgent(): string;
650 performanceNow(): number;
651 supportsCookies(): boolean;
652 getCookie(name: string): string | null;
653}
654
655export declare class ɵBrowserGetTestability implements GetTestability {
656 static init(): void;
657 addToWindow(registry: TestabilityRegistry): void;
658 findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean): Testability | null;
659}
660
661export declare class ɵDomEventsPlugin extends ɵangular_packages_platform_browser_platform_browser_g {
662 constructor(doc: any);
663 supports(eventName: string): boolean;
664 addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
665 removeEventListener(target: any, eventName: string, callback: Function): void;
666}
667
668export declare class ɵDomRendererFactory2 implements RendererFactory2 {
669 private eventManager;
670 private sharedStylesHost;
671 private appId;
672 private rendererByCompId;
673 private defaultRenderer;
674 constructor(eventManager: EventManager, sharedStylesHost: ɵDomSharedStylesHost, appId: string);
675 createRenderer(element: any, type: RendererType2 | null): Renderer2;
676 begin(): void;
677 end(): void;
678}
679
680export declare class ɵDomSanitizerImpl extends DomSanitizer {
681 private _doc;
682 constructor(_doc: any);
683 sanitize(ctx: SecurityContext, value: SafeValue | string | null): string | null;
684 bypassSecurityTrustHtml(value: string): SafeHtml;
685 bypassSecurityTrustStyle(value: string): SafeStyle;
686 bypassSecurityTrustScript(value: string): SafeScript;
687 bypassSecurityTrustUrl(value: string): SafeUrl;
688 bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl;
689}
690
691export declare class ɵDomSharedStylesHost extends ɵSharedStylesHost implements OnDestroy {
692 private _doc;
693 private _hostNodes;
694 private _styleNodes;
695 constructor(_doc: any);
696 private _addStylesToHost;
697 addHost(hostNode: Node): void;
698 removeHost(hostNode: Node): void;
699 onStylesAdded(additions: Set<string>): void;
700 ngOnDestroy(): void;
701}
702
703export declare const ɵELEMENT_PROBE_PROVIDERS: Provider[];
704
705/**
706 * In Ivy, we don't support NgProbe because we have our own set of testing utilities
707 * with more robust functionality.
708 *
709 * We shouldn't bring in NgProbe because it prevents DebugNode and friends from
710 * tree-shaking properly.
711 */
712export declare const ɵELEMENT_PROBE_PROVIDERS__POST_R3__: never[];
713
714
715export declare function ɵescapeHtml(text: string): string;
716
717export declare function ɵflattenStyles(compId: string, styles: Array<any | any[]>, target: string[]): string[];
718export { ɵgetDOM }
719
720/**
721 * In Ivy, support for Hammer gestures is optional, so applications must
722 * import the `HammerModule` at root to turn on support. This means that
723 * Hammer-specific code can be tree-shaken away if not needed.
724 */
725export declare const ɵHAMMER_PROVIDERS__POST_R3__: never[];
726
727/**
728 * Event plugin that adds Hammer support to an application.
729 *
730 * @ngModule HammerModule
731 */
732export declare class ɵHammerGesturesPlugin extends ɵangular_packages_platform_browser_platform_browser_g {
733 private _config;
734 private console;
735 private loader?;
736 constructor(doc: any, _config: HammerGestureConfig, console: ɵConsole, loader?: HammerLoader | null | undefined);
737 supports(eventName: string): boolean;
738 addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
739 isCustomEvent(eventName: string): boolean;
740}
741
742export declare function ɵinitDomAdapter(): void;
743
744export declare const ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS: StaticProvider[];
745
746/**
747 * @publicApi
748 * A browser plug-in that provides support for handling of key events in Angular.
749 */
750export declare class ɵKeyEventsPlugin extends ɵangular_packages_platform_browser_platform_browser_g {
751 /**
752 * Initializes an instance of the browser plug-in.
753 * @param doc The document in which key events will be detected.
754 */
755 constructor(doc: any);
756 /**
757 * Reports whether a named key event is supported.
758 * @param eventName The event name to query.
759 * @return True if the named key event is supported.
760 */
761 supports(eventName: string): boolean;
762 /**
763 * Registers a handler for a specific element and key event.
764 * @param element The HTML element to receive event notifications.
765 * @param eventName The name of the key event to listen for.
766 * @param handler A function to call when the notification occurs. Receives the
767 * event object as an argument.
768 * @returns The key event that was registered.
769 */
770 addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
771 static parseEventName(eventName: string): {
772 [key: string]: string;
773 } | null;
774 static getEventFullKey(event: KeyboardEvent): string;
775 /**
776 * Configures a handler callback for a key event.
777 * @param fullKey The event name that combines all simultaneous keystrokes.
778 * @param handler The function that responds to the key event.
779 * @param zone The zone in which the event occurred.
780 * @returns A callback function.
781 */
782 static eventCallback(fullKey: any, handler: Function, zone: NgZone): Function;
783}
784
785export declare const ɵNAMESPACE_URIS: {
786 [ns: string]: string;
787};
788
789export declare class ɵSharedStylesHost {
790 addStyles(styles: string[]): void;
791 onStylesAdded(additions: Set<string>): void;
792 getAllStyles(): string[];
793}
794
795export declare function ɵshimContentAttribute(componentShortId: string): string;
796
797export declare function ɵshimHostAttribute(componentShortId: string): string;
798
799/**
800 * An id that identifies a particular application being bootstrapped, that should
801 * match across the client/server boundary.
802 */
803export declare const ɵTRANSITION_ID: InjectionToken<unknown>;
804
805export { }
806
\No newline at end of file