import PluginBase from '@xdn/core/plugins/PluginBase'; import { Router } from '@xdn/core/router'; export declare const XDN_NUXT_CONFIG_PATH = "xdn-nuxt.config.json"; export declare const browserAssetOpts: { permanent: boolean; exclude: string[]; }; export default class NuxtRoutes extends PluginBase { private readonly nuxtRouteGroupName; private router?; private readonly routesJsonPath; private readonly config; readonly type = "NuxtRoutes"; /** * Provides nuxt registered routes to router */ constructor(); /** * Updates the XDN router to include all routes from Nuxt (.nuxt/routes.json) */ loadNuxtRoutes(): any; /** * Returns true if the specified plugin is an instance of NuxtRoutes * @param plugin */ static is(plugin: PluginBase): boolean; /** * Called when plugin is registered. Creates a route group and add all nuxt routes into it. * @param {Router} router */ onRegister(router: Router): void; /** * Update routes */ private updateRoutes; /** * Adds nuxt routes to route group * @param {RouteGroup} group */ private addNuxtRoutesToGroup; /** * Adds routes for vue components * @param group */ private addPages; /** * Renders the generated 404 page * @param res * @param notFoundPage */ private render404; private isStatic; /** * Adds routes for static assets, including /static and /.nuxt/static * @param group */ private addAssets; }