1 | import ts from "typescript/lib/tsserverlibrary";
|
2 | export interface Position {
|
3 | line: number;
|
4 | character: number;
|
5 | }
|
6 | export interface Range {
|
7 | start: Position;
|
8 | end: Position;
|
9 | }
|
10 | export declare const Position: {
|
11 | |
12 |
|
13 |
|
14 |
|
15 |
|
16 | create(line: number, character: number): Position;
|
17 | };
|
18 | export declare const Range: {
|
19 | create(start: Position, end: Position): Range;
|
20 | };
|
21 | export declare type compileHint = {
|
22 | text: string;
|
23 | range: Range;
|
24 | contentRange: Range;
|
25 | };
|
26 | export declare function parseCompileHint(sourceFile: ts.SourceFile, comment: ts.CommentRange): compileHint | undefined;
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | export declare function getDenoCompileHint(sourceFile: ts.SourceFile, pos?: number): compileHint[];
|