1 import * as ts from 'typescript';
2 import { Extra } from './parser-options';
4 * Default compiler options for program generation from single root file
6 export declare const defaultCompilerOptions: ts.CompilerOptions;
8 * Clear all of the parser caches.
9 * This should only be used in testing to ensure the parser is clean between tests.
11 export declare function clearCaches(): void;
13 * Calculate project environments using options provided by consumer and paths from config
14 * @param code The code being linted
15 * @param filePath The path of the file being parsed
16 * @param extra.tsconfigRootDir The root directory for relative tsconfig paths
17 * @param extra.projects Provided tsconfig paths
18 * @returns The programs corresponding to the supplied tsconfig paths
20 export declare function calculateProjectParserOptions(code: string, filePath: string, extra: Extra): ts.Program[];
22 * Create program from single root file. Requires a single tsconfig to be specified.
23 * @param code The code being linted
24 * @param filePath The file being linted
25 * @param extra.tsconfigRootDir The root directory for relative tsconfig paths
26 * @param extra.projects Provided tsconfig paths
27 * @returns The program containing just the file being linted and associated library files
29 export declare function createProgram(code: string, filePath: string, extra: Extra): ts.Program | undefined;
30 //# sourceMappingURL=tsconfig-parser.d.ts.map