import type { Snapshot, TestResult } from '../../../types.js' import { Worker } from 'node:worker_threads' /** * Wait up to timeoutMs for all in-flight worker terminations to complete. * Resolves true when everything drained, false on timeout (the caller * decides — the CLI hard-exits, a library consumer can wait longer). * The timeout timer is unref'd: it never keeps the process alive on its own. */ export declare const drainIsolationWorkers: (timeoutMs?: number) => Promise /** * Run a single test in a worker thread for true isolation. */ export declare const executeInWorker: ( options: { testFileUrl: string testIndex: number testPkg: string testParent: string testName: string suiteSnapshot?: Snapshot }, activeWorkers: Set, ) => Promise /** * Run multiple tests in a single worker for better performance. */ export declare const executeBatchInWorker: ( options: { testFileUrl: string testIndices: number[] testPkg: string testParent: string testNames: string[] suiteSnapshot?: Snapshot }, activeWorkers: Set, ) => Promise