1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import type {default as default_2} from 'jest-resolve';
|
8 | import type {IHasteFS} from 'jest-haste-map';
|
9 | import type {ResolveModuleConfig} from 'jest-resolve';
|
10 | import {SnapshotResolver} from 'jest-snapshot';
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export declare class DependencyResolver {
|
17 | private readonly _hasteFS;
|
18 | private readonly _resolver;
|
19 | private readonly _snapshotResolver;
|
20 | constructor(
|
21 | resolver: default_2,
|
22 | hasteFS: IHasteFS,
|
23 | snapshotResolver: SnapshotResolver,
|
24 | );
|
25 | resolve(file: string, options?: ResolveModuleConfig): Array<string>;
|
26 | resolveInverseModuleMap(
|
27 | paths: Set<string>,
|
28 | filter: (file: string) => boolean,
|
29 | options?: ResolveModuleConfig,
|
30 | ): Array<ResolvedModule>;
|
31 | resolveInverse(
|
32 | paths: Set<string>,
|
33 | filter: (file: string) => boolean,
|
34 | options?: ResolveModuleConfig,
|
35 | ): Array<string>;
|
36 | }
|
37 |
|
38 | export declare type ResolvedModule = {
|
39 | file: string;
|
40 | dependencies: Array<string>;
|
41 | };
|
42 |
|
43 | export {};
|