import type { Plugin } from 'vite'; /** * Vite plugin that implements Cascading Cache-Busting for ESM module mocking. * * - `resolveId` hook: Strips the mock-id param, delegates to Vite's normal resolver * (which maps `.js` → `.ts`), then reattaches the param. Without this, Vite * returns a 404 for `.js` paths that only exist on disk as `.ts`. * * - `load` hook (Interceptor): If a file is registered as mocked for a given testId, * read its real exports via es-module-lexer and return a synthetic module that * binds those exports to `window.__LUPA_MOCKS__[testId][path]`. * * - `transform` hook (Cascader): For any file loaded with a `?lupa-mock-id` param, * rewrite all its import specifiers to include the same param, so the entire * dependency subtree is also fetched fresh and may be intercepted. */ export declare function moduleMockVitePlugin(): Plugin;