1 | import type { Program } from 'typescript';
|
2 | import * as ts from 'typescript';
|
3 | import type { ParseSettings } from '../parseSettings';
|
4 | interface ASTAndNoProgram {
|
5 | ast: ts.SourceFile;
|
6 | program: null;
|
7 | }
|
8 | interface ASTAndDefiniteProgram {
|
9 | ast: ts.SourceFile;
|
10 | program: ts.Program;
|
11 | }
|
12 | type ASTAndProgram = ASTAndDefiniteProgram | ASTAndNoProgram;
|
13 |
|
14 |
|
15 |
|
16 | declare const CORE_COMPILER_OPTIONS: ts.CompilerOptions;
|
17 | declare function createDefaultCompilerOptionsFromExtra(parseSettings: ParseSettings): ts.CompilerOptions;
|
18 | type CanonicalPath = string & {
|
19 | __brand: unknown;
|
20 | };
|
21 | declare function getCanonicalFileName(filePath: string): CanonicalPath;
|
22 | declare function ensureAbsolutePath(p: string, tsconfigRootDir: string): string;
|
23 | declare function canonicalDirname(p: CanonicalPath): CanonicalPath;
|
24 | declare function getAstFromProgram(currentProgram: Program, filePath: string): ASTAndDefiniteProgram | undefined;
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | declare function createHash(content: string): string;
|
31 | export { ASTAndDefiniteProgram, ASTAndNoProgram, ASTAndProgram, CORE_COMPILER_OPTIONS, canonicalDirname, CanonicalPath, createDefaultCompilerOptionsFromExtra, createHash, ensureAbsolutePath, getCanonicalFileName, getAstFromProgram, };
|
32 |
|
\ | No newline at end of file |