import type { CompiledTestCheckOptions } from '../application/run-suite'; import type { TestExtension } from '../config.types'; /** * Collects test files with the specified extension or extensions. * * Directories are traversed depth-first in deterministic name order so test * execution does not depend on filesystem enumeration order. */ export declare function collectTestFiles(dir: string, extensions: TestExtension | readonly TestExtension[]): string[]; /** * Verifies a resolved project directory before the runner starts filesystem work. * * Error messages use project-relative paths so diagnostics stay stable across * local machines, containers, and CI. */ export declare function assertDirectory(dir: string, name: string, projectDir: string): void; /** * Checks compiled tests before execution. * * Compiled tests without source are pruned only when prune is enabled. * Otherwise the run fails before stale JavaScript can be executed. * Pruning is limited to a dedicated output directory inside the project and * starts only after every remaining compiled test passes validation. * * Additionally checks that an existing compiled test is not older than its source test. * This protects against a false-positive run of old compiled JS tests after * the corresponding source TS tests were changed or deleted. */ export declare function checkCompiledTests(testFiles: string[], options: CompiledTestCheckOptions): string[];