import { type TestFramework } from '../../services/test-cache/test-cache-service.js'; export type TestOptions = { all?: boolean; changed?: boolean; clearCache?: boolean; noCacheResult?: boolean; /** Whether the test runner's --cache should be enabled. Commander maps * `--no-cache` to `cache = false` (BASE name); default `true`. */ cache?: boolean; passthrough?: boolean; framework?: string; project?: string; json?: boolean; }; /** A refused run, on the stream and in the shape the caller asked for. */ export declare function emitTestFailure(options: TestOptions, message: string): void; /** The `--clear-cache` short circuit. */ export declare function clearCacheAndReport(options: TestOptions, projectRoot: string): void; /** The framework to run, or null after the matching refusal was emitted. */ export declare function resolveFramework(options: TestOptions, projectRoot: string): TestFramework | null; /** Stream the runner's output to the user, then emit the JSON envelope. */ export declare function reportRunResult(options: TestOptions, framework: TestFramework, argv: string[], result: { code: number; stdout: string; stderr: string; notice: string | null; }): void;