import { Mutant, StrykerOptions } from '@stryker-mutator/api/core'; import { Logger } from '@stryker-mutator/api/logging'; import { NativeDiagnostic } from './native-diagnostic.js'; import { NativeFileSystem } from './native-file-system.js'; /** * An in-memory type checker implementation that uses the (unstable) API of * the native TypeScript compiler preview (TypeScript 7, a.k.a. tsgo). * * Only "single project" mode is supported, project references (`--build` mode) * are not supported (yet) by the native compiler API. */ export declare class NativeTypescriptCompiler { #private; private readonly log; private readonly options; private readonly fs; static inject: ["logger", "options", "fs"]; private readonly tsconfigFile; private api; private lastMutants; constructor(log: Logger, options: StrykerOptions, fs: NativeFileSystem); /** * Starts the native TypeScript compiler and performs a dry run */ init(): Promise; /** * Type checks the project with the provided mutants applied (and previous mutants reverted) * @param mutants The mutants to apply before type checking */ check(mutants: Mutant[]): Promise; /** * Determines whether or not the given file is part of the opened typescript project */ isProjectFile(fileName: string): boolean; dispose(): void; private checkSnapshot; private guardTSConfigFileExists; private guardNoProjectReferences; } //# sourceMappingURL=native-typescript-compiler.d.ts.map