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