/** * tsc runner: reads project tsconfig, creates a minimal temp tsconfig, * and runs `tsc --noEmit` on a single file. */ /** Result of running tsc on the real file. */ export interface TscResult { /** Compilation errors (null if compilation succeeded) */ errors: string | null; } /** * Run `tsc --noEmit` on a single file. * * If the project has a tsconfig.json, creates a minimal temp tsconfig that * copies compilerOptions but only includes the target file, then runs * `tsc --project `. Otherwise runs `tsc` with minimal CLI flags. * * The temp tsconfig is cleaned up in a `finally` block. */ export declare function runTsc(filePath: string, cwd: string, tempId: string): TscResult;