1 | |
2 |
|
3 |
|
4 |
|
5 | import { PlatformContext } from './qualifier-matcher';
|
6 |
|
7 | export { PlatformContext } from './qualifier-matcher';
|
8 |
|
9 | export type ModuleListProvider = () => string[];
|
10 |
|
11 | export class ModuleNameResolver {
|
12 | constructor(context: PlatformContext, moduleListProvider?: ModuleListProvider);
|
13 | resolveModuleName(path: string, ext: string): string;
|
14 | clearCache(): void;
|
15 | }
|
16 |
|
17 | export function resolveModuleName(path: string, ext: string): string;
|
18 | export function clearCache(): void;
|
19 |
|
20 | /**
|
21 | * Used to set a global singular instance of ModuleNameResolver
|
22 | * @param resolver instance
|
23 | */
|
24 | export function _setResolver(resolver: ModuleNameResolver);
|