import type { afterAll, afterEach, beforeAll, beforeEach, describe, test } from 'vitest'; /** * .what = unified interface for test framework functions * .why = abstracts away differences between jest and vitest modules */ export interface TestGlobals { describe: typeof describe; test: typeof test; beforeAll: typeof beforeAll; beforeEach: typeof beforeEach; afterAll: typeof afterAll; afterEach: typeof afterEach; } /** * .what = synchronously requires test functions from the active runner * .why = test registration must be synchronous (describe/test called at module load) */ export declare const getTestGlobals: () => TestGlobals; /** * .what = accessor for cached test globals * .why = provides convenient access without explicit initialization */ export declare const globals: () => TestGlobals; /** * .what = resets the cached globals (for testing only) * .why = allows tests to verify loading logic */ export declare const resetTestGlobalsCache: () => void;