import type { TestRunner } from '../../../../infra/isomorph.test/detectTestRunner'; /** * .what = the largest delay a node timer accepts, in ms * .why = a repeatable attempt registers its test and its setup hook with this budget, * so the runner's own timer never fires. the wrapper owns the real deadline, * and turns an overrun into a failure it can withhold */ export declare const TIMEOUT_MAX_MS = 2147483647; /** * .what = reads the per-test time budget the runner would apply * .why = the wrapper races each attempt against the budget the consumer set — via * `jest.setTimeout`, `testTimeout` in config, or the runner default — so an * overrun fails at the same moment it would have before, only catchably * * .note = both runners hold the budget on internal state, with no public read: * - jest: `globalThis[Symbol('JEST_STATE_SYMBOL')].testTimeout`. the symbol * is unregistered, so it is found by its description * (jest-circus `_callCircusTest`: `test.timeout || getState().testTimeout`) * - vitest: `globalThis.__vitest_worker__.config.testTimeout` * an absent field is a runner change this code must learn of, so it fails * loud rather than guess a budget (invariant I4) */ export declare const getOneTestBudget: (input: { runner: TestRunner; }) => number;