1 | import { DefinitionNode, DocumentNode } from 'graphql';
|
2 | export declare type VisitedFilesMap = Map<string, Map<string, Set<DefinitionNode>>>;
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export declare function processImport(filePath: string, cwd?: string, predefinedImports?: Record<string, string>, visitedFiles?: VisitedFilesMap): DocumentNode;
|
9 | export declare function extractDependencies(filePath: string, fileContents: string): {
|
10 | definitionsByName: Map<string, Set<DefinitionNode>>;
|
11 | dependenciesByDefinitionName: Map<string, Set<string>>;
|
12 | };
|
13 | export declare function processImports(importLines: string[], filePath: string, visitedFiles: VisitedFilesMap, predefinedImports: Record<string, string>): {
|
14 | allImportedDefinitionsMap: Map<string, Set<DefinitionNode>>;
|
15 | potentialTransitiveDefinitionsMap: Map<string, Set<DefinitionNode>>;
|
16 | };
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export declare function extractImportLines(fileContent: string): {
|
22 | importLines: string[];
|
23 | otherLines: string;
|
24 | };
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | export declare function parseImportLine(importLine: string): {
|
32 | imports: string[];
|
33 | from: string;
|
34 | };
|