/** * Vitest test tracing hooks * Single Responsibility: Integrate tracing with Vitest lifecycle */ import { type LogContext } from '@kitiumai/logger'; /** * Vitest task context interface */ type VitestTaskContext = { task: { name: string; }; }; /** * Tracing hooks for Vitest tests */ export type TestTracingHooks = { beforeEach: (context: VitestTaskContext) => void; afterEach: () => void; withTrace: (function_: () => Promise | T) => Promise | T; getCurrentTraceContext: () => LogContext | null; }; /** * Setup test tracing with Vitest lifecycle hooks * Returns hooks that can be used with beforeEach/afterEach */ export declare function setupTestTracing(): TestTracingHooks; export {}; //# sourceMappingURL=test-hooks.d.ts.map