import { d as WorkerSetupContext, e as BirpcOptions } from './chunks/worker.d.MLmnzOJE.js'; import { WorkerGlobalState } from './index.js'; import { T as Traces } from './chunks/rpc.d.DA9Utv4e.js'; import { RuntimeRPC } from './index.js'; import { A as Awaitable } from './chunks/config.d.CU_b-wJj.js'; import { ModuleRunner } from 'vite/module-runner'; import './chunks/environment.d.C6xYahWA.js'; import 'vitest/optional-runtime-types.js'; import 'tinybench'; /** @experimental */ declare function setupBaseEnvironment(context: WorkerSetupContext): Promise<() => Promise>; /** @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; onModuleRunner?: (moduleRunner: ModuleRunner) => Awaitable; setup?: (context: WorkerSetupContext) => void | Promise<() => Promise>; } interface Options extends VitestWorker { teardown?: () => void; } /** @experimental */ declare function init(worker: Options): void; export { init, runBaseTests, setupBaseEnvironment as setupEnvironment };