1 | import ts from "typescript/lib/tsserverlibrary";
|
2 | interface Comment extends ts.CommentRange {
|
3 | text: string;
|
4 | }
|
5 | export declare type Position = {
|
6 | line: number;
|
7 | character: number;
|
8 | };
|
9 | export declare type Range = {
|
10 | start: Position;
|
11 | end: Position;
|
12 | };
|
13 | export declare type Hint = {
|
14 | text: string;
|
15 | range: Range;
|
16 | contentRange: Range;
|
17 | };
|
18 | export declare type ImportModule = {
|
19 | moduleName: string;
|
20 | hint?: Hint;
|
21 | location: Range;
|
22 | start: number;
|
23 | length: number;
|
24 | leadingComments?: Comment[];
|
25 | trailingComments?: Comment[];
|
26 | };
|
27 | export declare function getImportModules(sourceFile: ts.SourceFile): ImportModule[];
|
28 | export {};
|