export declare const getTransformed: (filePath: string) => string | undefined; export declare const setTransformed: (filePath: string, content: string, mtime: number, imports?: string[]) => void; export declare const findNearestComponent: (filePath: string) => string | undefined; export declare const getInvalidationVersion: (filePath: string) => number; /** * Invalidate `filePath` and every transitive importer. * * BFS up the reverse-import graph; for each visited file we (1) drop * its transform cache so the next request re-transpiles, and (2) bump * its invalidation version so `srcUrl()` emits a fresh `?v=` token — * forcing the browser to refetch even when the importer's mtime is * unchanged. Bumping versions on transitive importers (not just the * originally-changed file) is the load-bearing piece: without it, a * page that imports a service via two intermediate components keeps * resolving the page module under its old `?v=`, the page bundle's * internal `/@src/` references stay pointed at stale URLs, and rapid * HMR cycles wedge the browser bundle until the dev server restarts. * * Cycles are tolerated via the `visited` set. */ export declare const invalidate: (filePath: string) => void; export declare const invalidateAll: () => void;