import { Plugin as VitePlugin } from 'vite'; import { CompilerContext } from '../context/index.ts'; /** * Generate virtual files: * - loader.ts (for lazy loading components) * - to generate this file, this plugin also generates api.json, and * re-generates it in HMR * - setup files for tests * * The generated api.json is then used by componentTransformPipeline() and by * generateDocs(), among others. */ export declare function generateVirtualFiles(context: CompilerContext): readonly [VitePlugin, VitePlugin, VitePlugin]; /** * This function alone won't trigger a page refresh. However, if a page * is reloaded separately (by the browser or by lumina-compiler), the load() * plugin hook for loader.ts will be triggered, which would include updated * lazy meta */ export declare function clearLoaderTsCache(context: CompilerContext): void; export declare const requestServerReload: (context: CompilerContext) => void;