import { ResolvedVrtConfig } from "../types.mjs"; import { VrtPlan } from "./plan.mjs"; //#region src/node/run.d.ts /** * Wipes the actual/diff/uncaptured slate and writes the run manifest BEFORE * Vitest starts, so a `--changed` run that selects zero test files still leaves * consistent state and a mode-aware run.json (the plugin's globalSetup stands * down when it sees `__VRT_SETUP_DONE__`). */ declare function prepareRun(config: ResolvedVrtConfig, plan: VrtPlan): void; /** * Whether a Vitest arg would fight svrt for control of the run. Besides the * exact reserved flags, this catches bundled single-dash short clusters that * include `w` (e.g. `-uw`): Vitest keeps watch mode even under `run`, so the * spawned process would never exit and the compare step would never happen. */ declare function isReservedPassthrough(arg: string): boolean; type SpawnVitestOptions = { plan: VrtPlan; /** Verbatim args after `--`; may not steer selection/watch (svrt owns those). */ passthrough: string[]; }; /** Spawns `vitest run` with capture enabled, streaming its output. Returns the exit code. */ declare function spawnVitest(config: ResolvedVrtConfig, options: SpawnVitestOptions): number; //#endregion export { SpawnVitestOptions, isReservedPassthrough, prepareRun, spawnVitest };