/** * @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 { NgModuleResolver } from '@angular/compiler'; import { Injector, NgModule, Type } from '@angular/core'; export declare class MockNgModuleResolver extends NgModuleResolver { private _injector; private _ngModules; constructor(_injector: Injector); /** * Overrides the {@link NgModule} for a module. */ setNgModule(type: Type, metadata: NgModule): void; /** * Returns the {@link NgModule} for a module: * - Set the {@link NgModule} to the overridden view when it exists or fallback to the * default * `NgModuleResolver`, see `setNgModule`. */ resolve(type: Type, throwIfNotFound?: boolean): NgModule; private readonly _compiler; private _clearCacheFor(component); }