1 | export declare type ImportDeclaration<T = string> = {
|
2 | outputPath: string;
|
3 | importSource: ImportSource<T>;
|
4 | baseOutputDir: string;
|
5 | baseDir: string;
|
6 | };
|
7 | export declare type ImportSource<T = string> = {
|
8 | |
9 |
|
10 |
|
11 | path: string;
|
12 | |
13 |
|
14 |
|
15 | namespace?: string;
|
16 | |
17 |
|
18 |
|
19 | identifiers?: T[];
|
20 | };
|
21 | export declare type FragmentImport = {
|
22 | name: string;
|
23 | kind: 'type' | 'document';
|
24 | };
|
25 | export declare function generateFragmentImportStatement(statement: ImportDeclaration<FragmentImport>, kind: 'type' | 'document' | 'both'): string;
|
26 | export declare function generateImportStatement(statement: ImportDeclaration): string;
|
27 | export declare function resolveRelativeImport(from: string, to: string): string;
|
28 | export declare function resolveImportSource<T>(source: string | ImportSource<T>): ImportSource<T>;
|
29 | export declare function clearExtension(path: string): string;
|
30 | export declare function fixLocalFilePath(path: string): string;
|