/** * @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 */ /** * @module * @description * Entry point for all APIs of the compiler package. * *
*
Unstable APIs
*

* All compiler apis are currently considered experimental and private! *

*

* We expect the APIs in this package to keep on changing. Do not rely on them. *

*
*/ export * from './schema_registry_mock'; export * from './directive_resolver_mock'; export * from './ng_module_resolver_mock'; export * from './pipe_resolver_mock'; import { ModuleWithComponentFactories, CompilerOptions, CompilerFactory, NgModuleFactory, Injector, NgModule, Component, Directive, Pipe, Type, PlatformRef } from '@angular/core'; import { MetadataOverride } from '@angular/core/testing'; import { TestingCompilerFactory, TestingCompiler } from './private_import_core'; import { JitCompiler } from '@angular/compiler'; import { MockDirectiveResolver } from './directive_resolver_mock'; import { MockNgModuleResolver } from './ng_module_resolver_mock'; import { MockPipeResolver } from './pipe_resolver_mock'; export declare class TestingCompilerFactoryImpl implements TestingCompilerFactory { private _compilerFactory; constructor(_compilerFactory: CompilerFactory); createTestingCompiler(options: CompilerOptions[]): TestingCompiler; } export declare class TestingCompilerImpl implements TestingCompiler { private _compiler; private _directiveResolver; private _pipeResolver; private _moduleResolver; private _overrider; constructor(_compiler: JitCompiler, _directiveResolver: MockDirectiveResolver, _pipeResolver: MockPipeResolver, _moduleResolver: MockNgModuleResolver); injector: Injector; compileModuleSync(moduleType: Type): NgModuleFactory; compileModuleAsync(moduleType: Type): Promise>; compileModuleAndAllComponentsSync(moduleType: Type): ModuleWithComponentFactories; compileModuleAndAllComponentsAsync(moduleType: Type): Promise>; getNgContentSelectors(component: Type): string[]; overrideModule(ngModule: Type, override: MetadataOverride): void; overrideDirective(directive: Type, override: MetadataOverride): void; overrideComponent(component: Type, override: MetadataOverride): void; overridePipe(pipe: Type, override: MetadataOverride): void; clearCache(): void; clearCacheFor(type: Type): void; } /** * Platform for dynamic tests * * @experimental */ export declare const platformCoreDynamicTesting: (extraProviders?: any[]) => PlatformRef;