1 | /**
|
2 | * @license
|
3 | * Copyright Google LLC All Rights Reserved.
|
4 | *
|
5 | * Use of this source code is governed by an MIT-style license that can be
|
6 | * found in the LICENSE file at https://angular.io/license
|
7 | */
|
8 | /**
|
9 | * @fileoverview
|
10 | * This file is used as a private API channel to shared Angular FW APIs with @angular/cli.
|
11 | *
|
12 | * Any changes to this file should be discussed with the Angular CLI team.
|
13 | */
|
14 | import ts from 'typescript';
|
15 | /**
|
16 | * Known values for global variables in `@angular/core` that Terser should set using
|
17 | * https://github.com/terser-js/terser#conditional-compilation
|
18 | */
|
19 | export declare const GLOBAL_DEFS_FOR_TERSER: {
|
20 | ngDevMode: boolean;
|
21 | ngI18nClosureMode: boolean;
|
22 | };
|
23 | export declare const GLOBAL_DEFS_FOR_TERSER_WITH_AOT: {
|
24 | ngJitMode: boolean;
|
25 | ngDevMode: boolean;
|
26 | ngI18nClosureMode: boolean;
|
27 | };
|
28 | /**
|
29 | * Transform for downleveling Angular decorators and Angular-decorated class constructor
|
30 | * parameters for dependency injection. This transform can be used by the CLI for JIT-mode
|
31 | * compilation where constructor parameters and associated Angular decorators should be
|
32 | * downleveled so that apps are not exposed to the ES2015 temporal dead zone limitation
|
33 | * in TypeScript. See https://github.com/angular/angular-cli/pull/14473 for more details.
|
34 | */
|
35 | export declare function constructorParametersDownlevelTransform(program: ts.Program): ts.TransformerFactory<ts.SourceFile>;
|