import * as ts from 'typescript'; import { Environment } from './environment'; export default class NodeJsEnvironment implements Environment { newLine: string; currentDirectory: string; useCaseSensitiveFileNames: boolean; defaultLibFileName: string; constructor(currentDirectory: string, newLine: string, scriptTarget: ts.ScriptTarget, defaultLibFileName?: string); readFile(fileName: string): string; writeFile(fileName: string, data: string): void; resolvePath(...pathSegments: string[]): string; relativePath(from: string, to?: string): string; dirname(fileName: string): string; exists(fileName: string): boolean; getDefaultLibFileData(): string; glob(pattern: string, cwd?: string): string[]; eval(code: string): any; private getDefaultLibFileName(defaultLibFileName, scriptTarget); }