1 | import { importProvidersFrom, InjectionToken, NgModule, Provider, ɵReflectionCapabilities as ReflectionCapabilities } from '@angular/core';
|
2 | import { NgModuleMetadata } from '../../types';
|
3 | export declare const reflectionCapabilities: ReflectionCapabilities;
|
4 | export declare const REMOVED_MODULES: InjectionToken<unknown>;
|
5 | export declare const uniqueArray: (arr: any[]) => any[];
|
6 | export declare class PropertyExtractor implements NgModuleMetadata {
|
7 | private metadata;
|
8 | private component?;
|
9 | declarations?: any[];
|
10 | imports?: any[];
|
11 | providers?: Provider[];
|
12 | applicationProviders?: Array<Provider | ReturnType<typeof importProvidersFrom>>;
|
13 | constructor(metadata: NgModuleMetadata, component?: any);
|
14 | static warnImportsModuleWithProviders(propertyExtractor: PropertyExtractor): void;
|
15 | private init;
|
16 | /**
|
17 | * Analyze NgModule Metadata
|
18 | *
|
19 | * - Removes Restricted Imports
|
20 | * - Extracts providers from ModuleWithProviders
|
21 | * - Returns a new NgModuleMetadata object
|
22 | *
|
23 | *
|
24 | */
|
25 | private analyzeMetadata;
|
26 | static analyzeRestricted: (ngModule: NgModule) => [boolean] | [boolean, Provider];
|
27 | static analyzeDecorators: (component: any) => {
|
28 | isDeclarable: boolean;
|
29 | isStandalone: boolean;
|
30 | };
|
31 | static isDecoratorInstanceOf: (decorator: any, name: string) => boolean;
|
32 | }
|