import { W as WorkerGlobalState, B as BirpcOptions, a as WorkerSetupContext } from './chunks/worker.d.B4A26qg6.js'; import { T as Traces } from './chunks/traces.d.402V_yFI.js'; import { Awaitable } from '@vitest/utils'; import { R as RuntimeRPC } from './chunks/rpc.d.RH3apGEf.js'; import '@vitest/runner'; import 'vite/module-runner'; import './chunks/config.d.CzIjkicf.js'; import '@vitest/pretty-format'; import '@vitest/snapshot'; import '@vitest/utils/diff'; import './chunks/environment.d.CrsxCzP1.js'; /** @experimental */ declare function runBaseTests(method: "run" | "collect", state: WorkerGlobalState, traces: Traces): Promise; type WorkerRpcOptions = Pick, "on" | "off" | "post" | "serialize" | "deserialize">; interface VitestWorker extends WorkerRpcOptions { runTests: (state: WorkerGlobalState, traces: Traces) => Awaitable; collectTests: (state: WorkerGlobalState, traces: Traces) => Awaitable; setup?: (context: WorkerSetupContext) => Promise<() => Promise>; } interface Options extends VitestWorker { teardown?: () => void; } /** @experimental */ declare function init(worker: Options): void; export { init, runBaseTests };