/** * Load route modules in dev (compile .nx → .mjs) and prod (pre-built .js under .nexus/output). */ export interface LoadRouteModuleOptions { dev: boolean; /** App root (where package.json and node_modules live) */ appRoot: string; /** Route pattern from manifest, e.g. `/`, `/editor`, `/blog/:slug` */ pattern: string; /** * Whether this module is a layout (`+layout.nx`) rather than a page (`+page.nx`). * In production, layouts are written to `{seg}._layout.js` so they never * collide with pages that share the same pattern (e.g. `/`). */ isLayout?: boolean; } export declare function bumpDevReloadGeneration(): void; /** * Re-import `*.actions.mjs` only under the current compiler fingerprint dir (same as compiled routes). * Importing every stale `dev-server//…` sidecar re-ran `registerAction` with obsolete * generated code (e.g. duplicate `createAction` bodies without `$lib` imports) and overwrote the registry. */ /** * Loads every route module once so generated `*.actions.*` sidecars run `registerAction` * before any HTTP request. Dev: compiles each `.nx` route; prod: imports `*.actions.js` from `.nexus/output`. */ export declare function preloadRegisteredServerActions(appRoot: string, dev: boolean): Promise; export declare function reimportDevActionSidecars(appRoot: string): Promise; /** * Dynamic import for `.ts`/`.js` routes, compiled `.nx` in dev, or built `.js` in production. */ export declare function loadRouteModule(filepath: string, options: LoadRouteModuleOptions): Promise>; //# sourceMappingURL=load-module.d.ts.map