/** @deprecated */ export declare function addProviders(providers: Array): void; /** @stable */ export declare function async(fn: Function): (done: any) => any; /** @stable */ export declare class ComponentFixture { changeDetectorRef: ChangeDetectorRef; componentInstance: T; componentRef: ComponentRef; debugElement: DebugElement; elementRef: ElementRef; nativeElement: any; ngZone: NgZone; constructor(componentRef: ComponentRef, ngZone: NgZone, autoDetect: boolean); autoDetectChanges(autoDetect?: boolean): void; checkNoChanges(): void; destroy(): void; detectChanges(checkNoChanges?: boolean): void; isStable(): boolean; whenStable(): Promise; } /** @experimental */ export declare var ComponentFixtureAutoDetect: OpaqueToken; /** @experimental */ export declare var ComponentFixtureNoNgZone: OpaqueToken; /** @experimental */ export declare function discardPeriodicTasks(): void; /** @experimental */ export declare function fakeAsync(fn: Function): (...args: any[]) => any; /** @experimental */ export declare function flushMicrotasks(): void; /** @experimental */ export declare function getTestBed(): TestBed; /** @stable */ export declare function inject(tokens: any[], fn: Function): () => any; /** @experimental */ export declare class InjectSetupWrapper { constructor(_moduleDef: () => TestModuleMetadata); inject(tokens: any[], fn: Function): () => any; } /** @experimental */ export declare type MetadataOverride = { add?: T; remove?: T; set?: T; }; /** @experimental */ export declare function resetFakeAsyncZone(): void; /** @experimental */ export declare class TestBed implements Injector { ngModule: Type; platform: PlatformRef; compileComponents(): Promise; configureCompiler(config: { providers?: any[]; useJit?: boolean; }): void; configureTestingModule(moduleDef: TestModuleMetadata): void; createComponent(component: ConcreteType): ComponentFixture; execute(tokens: any[], fn: Function): any; get(token: any, notFoundValue?: any): any; /** @experimental */ initTestEnvironment(ngModule: Type, platform: PlatformRef): void; overrideComponent(component: ConcreteType, override: MetadataOverride): void; overrideDirective(directive: ConcreteType, override: MetadataOverride): void; overrideModule(ngModule: ConcreteType, override: MetadataOverride): void; overridePipe(pipe: ConcreteType, override: MetadataOverride): void; /** @deprecated */ reset(): void; /** @experimental */ resetTestEnvironment(): void; resetTestingModule(): void; static compileComponents(): Promise; static configureCompiler(config: { providers?: any[]; useJit?: boolean; }): typeof TestBed; static configureTestingModule(moduleDef: TestModuleMetadata): typeof TestBed; static createComponent(component: ConcreteType): ComponentFixture; /** @experimental */ static initTestEnvironment(ngModule: Type, platform: PlatformRef): TestBed; static overrideComponent(component: ConcreteType, override: MetadataOverride): typeof TestBed; static overrideDirective(directive: ConcreteType, override: MetadataOverride): typeof TestBed; static overrideModule(ngModule: ConcreteType, override: MetadataOverride): typeof TestBed; static overridePipe(pipe: ConcreteType, override: MetadataOverride): typeof TestBed; /** @experimental */ static resetTestEnvironment(): void; static resetTestingModule(): typeof TestBed; } /** @deprecated */ export declare class TestComponentBuilder { protected _injector: Injector; constructor(_injector: Injector); createAsync(rootComponentType: ConcreteType): Promise>; createFakeAsync(rootComponentType: ConcreteType): ComponentFixture; protected createFromFactory(ngZone: NgZone, componentFactory: ComponentFactory): ComponentFixture; createSync(rootComponentType: ConcreteType): ComponentFixture; overrideAnimations(componentType: Type, animations: AnimationEntryMetadata[]): TestComponentBuilder; overrideDirective(componentType: Type, from: Type, to: Type): TestComponentBuilder; overrideProviders(type: Type, providers: any[]): TestComponentBuilder; overrideTemplate(componentType: Type, template: string): TestComponentBuilder; overrideView(componentType: Type, view: ViewMetadata): TestComponentBuilder; overrideViewProviders(type: Type, providers: any[]): TestComponentBuilder; } /** @experimental */ export declare class TestComponentRenderer { insertRootElement(rootElementId: string): void; } /** @experimental */ export declare type TestModuleMetadata = { providers?: any[]; declarations?: any[]; imports?: any[]; schemas?: Array; }; /** @experimental */ export declare function tick(millis?: number): void; /** @experimental */ export declare function withModule(moduleDef: TestModuleMetadata): InjectSetupWrapper; /** @deprecated */ export declare function withProviders(providers: () => any): InjectSetupWrapper;