1
|
import { StaticReflector } from '../aot/static_reflector';
|
2
|
import { StaticSymbolResolver, StaticSymbolResolverHost } from '../aot/static_symbol_resolver';
|
3
|
import { AotSummaryResolverHost } from '../aot/summary_resolver';
|
4
|
import { CompileMetadataResolver } from '../metadata_resolver';
|
5
|
import { MessageBundle } from './message_bundle';
|
6
|
/**
|
7
|
* The host of the Extractor disconnects the implementation from TypeScript / other language
|
8
|
* services and from underlying file systems.
|
9
|
*/
|
10
|
export interface ExtractorHost extends StaticSymbolResolverHost, AotSummaryResolverHost {
|
11
|
/**
|
12
|
* Loads a resource (e.g. html / css)
|
13
|
*/
|
14
|
loadResource(path: string): Promise<string> | string;
|
15
|
}
|
16
|
export declare class Extractor {
|
17
|
host: ExtractorHost;
|
18
|
private staticSymbolResolver;
|
19
|
private messageBundle;
|
20
|
private metadataResolver;
|
21
|
constructor(host: ExtractorHost, staticSymbolResolver: StaticSymbolResolver, messageBundle: MessageBundle, metadataResolver: CompileMetadataResolver);
|
22
|
extract(rootFiles: string[]): Promise<MessageBundle>;
|
23
|
static create(host: ExtractorHost, locale: string | null): {
|
24
|
extractor: Extractor;
|
25
|
staticReflector: StaticReflector;
|
26
|
};
|
27
|
}
|