@mono-lit/utility 0.0.0-stage → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/LICENSE.md +54 -0
  2. package/README.md +157 -3
  3. package/dist/app-roots-CvJnmXcs.js +128 -0
  4. package/dist/app-roots-DK41xMWj.d.ts +90 -0
  5. package/dist/config-node-UzJrXg0Z.js +76 -0
  6. package/dist/config-node.d.ts +923 -0
  7. package/dist/config-node.js +7 -0
  8. package/dist/config.d.ts +2 -0
  9. package/dist/config.js +3 -0
  10. package/dist/create-config-B8IhX4ht.d.ts +735 -0
  11. package/dist/create-config-DdL3Fh6T.js +357 -0
  12. package/dist/fetching.d.ts +244 -0
  13. package/dist/fetching.js +1015 -0
  14. package/dist/generate-CJ7MtcDd.js +291 -0
  15. package/dist/index-BAy6tbOG.d.ts +371 -0
  16. package/dist/index-DYlzhHq7.d.ts +514 -0
  17. package/dist/index.d.ts +25 -0
  18. package/dist/index.js +941 -0
  19. package/dist/merge-file-CLc3wxY4.d.ts +99 -0
  20. package/dist/merge-file-CtyKTu5L.js +133 -0
  21. package/dist/mock-db-4tTWrF-P.js +1282 -0
  22. package/dist/mock-db.d.ts +2 -0
  23. package/dist/mock-db.js +4 -0
  24. package/dist/mono-alias-DNDm-jB_.js +508 -0
  25. package/dist/mono-clone.mjs +958 -0
  26. package/dist/mono-db.d.ts +1 -0
  27. package/dist/mono-db.js +158 -0
  28. package/dist/mono-env.mjs +231 -0
  29. package/dist/mono-git.mjs +798 -0
  30. package/dist/mono-link-YlOQ2PVS.js +488 -0
  31. package/dist/mono-prepare.d.ts +1 -0
  32. package/dist/mono-prepare.js +28 -0
  33. package/dist/mono-skills.d.ts +1 -0
  34. package/dist/mono-skills.js +837 -0
  35. package/dist/mono-tsconfig-D2qRL9_R.js +204 -0
  36. package/dist/mono.mjs +34 -0
  37. package/dist/nuxt-layers-DP1m7f1-.js +176 -0
  38. package/dist/nuxt-layers.d.ts +36 -0
  39. package/dist/nuxt-layers.js +3 -0
  40. package/dist/nuxt-runtime.d.ts +17 -0
  41. package/dist/nuxt-runtime.js +102 -0
  42. package/dist/nuxt.d.ts +390 -0
  43. package/dist/nuxt.js +737 -0
  44. package/dist/runtime-vs7U9Ed4.js +6054 -0
  45. package/dist/runtime.d.ts +2518 -0
  46. package/dist/runtime.js +4 -0
  47. package/dist/session-Bcig-rPi.js +1721 -0
  48. package/dist/types-B6FdB7LJ.d.ts +57 -0
  49. package/dist/universal-BR0O7Qwk.d.ts +59 -0
  50. package/dist/universal-DIVEzCvN.js +600 -0
  51. package/dist/virtual-mono-apps.d.ts +16 -0
  52. package/dist/vite.d.ts +943 -0
  53. package/dist/vite.js +1132 -0
  54. package/package.json +141 -3
package/dist/nuxt.d.ts ADDED
@@ -0,0 +1,390 @@
1
+ /// <reference path="../../vue.d.ts" />
2
+ import { c as MonoConfig } from "./create-config-B8IhX4ht.js";
3
+ import { t as MergeEcosystemOptions } from "./merge-file-CLc3wxY4.js";
4
+ import { Plugin } from "vite";
5
+ import { NuxtModule } from "@nuxt/schema";
6
+ //#region src/nuxt/nuxt-ecosystem.d.ts
7
+ /**
8
+ * Which Nuxt API consumes the discovered folders (the "destination").
9
+ *
10
+ * `layouts` / `middleware` / `plugins` are the shell a REMOTE inherits from its
11
+ * host; the first four are what a host pulls out of its remotes.
12
+ */
13
+ type EcosystemType = 'imports' | 'components' | 'pages' | 'layouts' | 'middleware' | 'plugins';
14
+ //#endregion
15
+ //#region ../helper/dist/src/components/tooltip/tooltip-types.d.ts
16
+ //#region src/components/tooltip/tooltip-types.d.ts
17
+ type Side = 'top' | 'right' | 'bottom' | 'left';
18
+ type MonoTooltipPlacement = Side | `${Side}-start` | `${Side}-end`;
19
+ /** What opens the tooltip. `manual` = only `show()` / `hide()` do. */
20
+ type MonoTooltipTrigger = 'hover' | 'focus' | 'click' | 'manual';
21
+ /** `inverted` = Basecoat's dark-on-light chip (default); `popover` = the dropdown surface. */
22
+ type MonoTooltipVariant = 'inverted' | 'popover';
23
+ type MonoTooltipColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'teal' | 'purple' | 'neutral' | 'dark';
24
+ type MonoTooltipSize = 'sm' | 'md' | 'lg';
25
+ /**
26
+ * The tooltip body. A function is called with the ANCHOR on every show, so one
27
+ * `controlMonoTooltip('.row-action', …)` can say something different per row.
28
+ * Returning `null` / `''` skips the show.
29
+ */
30
+ type MonoTooltipContent = string | Node | ((anchor: Element) => string | Node | null | undefined);
31
+ interface MonoTooltipOptions {
32
+ /**
33
+ * The text (or node) to show. When omitted the anchor supplies it:
34
+ * `mono-tooltip-content` → `mono-tooltip-message` → `title` → `aria-label`.
35
+ */
36
+ content?: MonoTooltipContent;
37
+ /** Treat string content as HTML. Default `false` (set as text). */
38
+ allowHTML?: boolean;
39
+ /** Preferred side (+ alignment). Default `'top'`. Flipped when there is no room. */
40
+ placement?: MonoTooltipPlacement;
41
+ /** Gap between the anchor and the tooltip, px. Default `6`. */
42
+ offset?: number;
43
+ /** Viewport padding kept by flip/shift, px. Default `8`. */
44
+ padding?: number;
45
+ /** Flip to the opposite side when the preferred one overflows. Default `true`. */
46
+ flip?: boolean;
47
+ /** Slide along the anchor to stay inside the viewport. Default `true`. */
48
+ shift?: boolean;
49
+ /** Draw the pointer arrow. Default `true`. */
50
+ arrow?: boolean;
51
+ /** What opens it. Default `['hover', 'focus']`. */
52
+ trigger?: MonoTooltipTrigger | MonoTooltipTrigger[];
53
+ /** Open / close delay in ms — one number for both, or `[show, hide]`. Default `[100, 0]`. */
54
+ delay?: number | [number, number];
55
+ /** Keep it open while the pointer is over the tooltip itself (links, buttons inside). Default `false`. */
56
+ interactive?: boolean;
57
+ /** CSS `max-width` of the bubble. Default: `--mono-tooltip-max-width`, else `20rem`. */
58
+ maxWidth?: string;
59
+ variant?: MonoTooltipVariant;
60
+ /** Paint the bubble in a palette colour instead of the variant's surface. */
61
+ color?: MonoTooltipColor;
62
+ size?: MonoTooltipSize;
63
+ /** Extra class(es) on the floating element. */
64
+ class?: string;
65
+ /** Where the floating element is appended. Default `document.body`. */
66
+ appendTo?: Element | (() => Element | null);
67
+ /** Stop opening (an open one closes). Default `false`. */
68
+ disabled?: boolean;
69
+ /** Close a hover/focus tooltip when its anchor is clicked. Default `true`. */
70
+ hideOnClick?: boolean;
71
+ /** Before it opens — return `false` to cancel. */
72
+ onShow?: (anchor: Element, tooltip: HTMLElement) => void | boolean;
73
+ /** Before it closes — return `false` to keep it. */
74
+ onHide?: (anchor: Element, tooltip: HTMLElement) => void | boolean;
75
+ }
76
+ /**
77
+ * What `createMonoTooltip` / Nuxt's `mono.helper.tooltip` take: every tooltip
78
+ * option (applied app-wide) plus the addon switches below. The Nuxt config
79
+ * additionally has to be JSON — no functions, no nodes.
80
+ */
81
+ interface MonoTooltipGlobalOptions extends MonoTooltipOptions {
82
+ /**
83
+ * Turn on the declarative attributes — any element (plain HTML, light or
84
+ * shadow `<mono-*>`) with `mono-tooltip-content="…"` (or `mono-tooltip-message`)
85
+ * gets a tooltip, no `controlMonoTooltip` call needed. Default `true`.
86
+ */
87
+ attributes?: boolean;
88
+ }
89
+ //#endregion
90
+ //#region ../helper/dist/src/composables/mono-skeleton.d.ts
91
+ //#region src/composables/mono-skeleton.d.ts
92
+ /** phantom-ui's options, camelCase (applied to the wrapper as kebab-case attributes). */
93
+ interface MonoPhantomProps {
94
+ /** `shimmer` (default) | `pulse` | `breathe` | `solid`. */
95
+ animation?: 'shimmer' | 'pulse' | 'breathe' | 'solid' | (string & {});
96
+ /** `skeleton` (default, hides the content) | `overlay` (dims it and sweeps). */
97
+ mode?: 'skeleton' | 'overlay' | (string & {});
98
+ shimmerDirection?: 'ltr' | 'rtl' | 'ttb' | 'btt' | (string & {});
99
+ /** Sweep colour. Unset = the mono theme's (`--mono-skeleton-color`). */
100
+ shimmerColor?: string;
101
+ /** Block colour. Unset = the mono theme's (`--mono-skeleton-bg`). */
102
+ backgroundColor?: string;
103
+ /** Animation cycle, seconds (default 1.5). */
104
+ duration?: number;
105
+ /** Delay between blocks, seconds. */
106
+ stagger?: number;
107
+ /** Fade-out when loading ends, seconds. */
108
+ reveal?: number;
109
+ /** Repeat the measured row set N times (table placeholders). */
110
+ count?: number;
111
+ /** Gap between repeated rows, px. */
112
+ countGap?: number;
113
+ /** Radius for flat elements, px (default 4). */
114
+ fallbackRadius?: number;
115
+ /** Screen-reader announcement (default "Loading"). */
116
+ loadingLabel?: string;
117
+ /** Measure inside open shadow roots of slotted components. */
118
+ pierceShadow?: boolean;
119
+ /** Outline the measured blocks. */
120
+ debug?: boolean;
121
+ }
122
+ /** `createMonoUI({ skeleton: {...} })` — global phantom defaults + the SSR flag. */
123
+ interface MonoSkeletonDefaults extends Partial<MonoPhantomProps> {
124
+ /**
125
+ * Whether the app renders on the server. Decides the AUTO default of light elements:
126
+ * `true` → pending on first connect, `false` → never pending unless asked. The Nuxt
127
+ * module sets it from `nuxt.options.ssr`; unset, a Nuxt payload marker is sniffed.
128
+ */
129
+ ssr?: boolean;
130
+ /**
131
+ * Safety net for an automatic pending that never gets its "loaded" signal: released
132
+ * after this many ms (default 15000; `0` disables).
133
+ */
134
+ maxWait?: number;
135
+ }
136
+ //#endregion
137
+ //#region ../helper/dist/src/composables/mono-ui.d.ts
138
+ //#region src/composables/mono-ui.d.ts
139
+ /**
140
+ * Tag → props map for typed configs. `scripts/gen-vue-types.mjs` augments it in
141
+ * the published types (`'mono-button': ButtonProps`, …); it is empty in source.
142
+ */
143
+ interface MonoUIComponents {}
144
+ type KnownConfig = { [K in keyof MonoUIComponents]?: Partial<MonoUIComponents[K]>; };
145
+ /**
146
+ * Per-component default props. Keys are tags (`mono-button`); props are camelCase or kebab-case.
147
+ * The reserved `skeleton` key holds the global defaults of the automatic skeleton
148
+ * (`pending`, see ./mono-skeleton.ts) and its `ssr` flag; `false` disables it.
149
+ */
150
+ type MonoUIConfig = KnownConfig & {
151
+ skeleton?: MonoSkeletonDefaults | false;
152
+ } & {
153
+ [tag: `mono-${string}`]: Record<string, unknown> | undefined;
154
+ };
155
+ //#endregion
156
+ //#region ../helper/dist/src/vite/index.d.ts
157
+ //#region src/vite/index.d.ts
158
+ interface MonoSsrOptions {
159
+ /** Custom-element tag prefix wrapped in <ClientOnly>. Default 'mono-'. */
160
+ prefix?: string;
161
+ /** Wrapper component used for client-only rendering. Default 'ClientOnly'. */
162
+ wrapper?: string;
163
+ /** Import prefix of registration modules stubbed during SSR. Default '@mono-lit/helper/ui/'. */
164
+ ssrStubPrefix?: string;
165
+ /**
166
+ * Tag names (e.g. `['mono-nav']`) to NOT wrap in `<ClientOnly>` — for
167
+ * components server-rendered by another mechanism (e.g. `nuxt-ssr-lit`
168
+ * shadow-DOM builds). Default `[]`.
169
+ */
170
+ exclude?: string[];
171
+ /**
172
+ * Wrap LIGHT `<prefix*>` elements in `<ClientOnly>`. Default `true`. `false`
173
+ * keeps the server import-stub and the shadow `<LitWrapper>` wrap but leaves
174
+ * light tags as they are — see `MonoClientOnlyOptions.lightWrap`.
175
+ */
176
+ lightWrap?: boolean;
177
+ /**
178
+ * Enable the import-driven SSR wrap: `<mono-*>` whose `@mono-lit/helper/ui/shadow/
179
+ * <entry>` build a `.vue` file imports get wrapped in `<LitWrapper>`
180
+ * (Declarative Shadow DOM) instead of `<ClientOnly>`. Default off.
181
+ */
182
+ litWrapper?: boolean;
183
+ /** Component name used for the SSR wrap. Default `'LitWrapper'`. */
184
+ litWrapperComponent?: string;
185
+ /** Tags to ALWAYS treat as shadow (for globally-registered components). */
186
+ shadowOverride?: string[];
187
+ }
188
+ //#endregion
189
+ //#region ../helper/dist/src/nuxt/index.d.ts
190
+ //#region src/nuxt/index.d.ts
191
+ interface MonoHelperModuleOptions extends MonoSsrOptions {
192
+ /** Auto-add `@mono-lit/helper/ui/index.css` to nuxt css. Default true. */
193
+ css?: boolean;
194
+ /** Register `<prefix*>` tags as custom elements (composed). Default true. */
195
+ customElement?: boolean;
196
+ /**
197
+ * Auto-wire SSR for shadow builds: importing `@mono-lit/helper/ui/shadow/<c>` in a
198
+ * `.vue` file makes its `<mono-c>` server-render (Declarative Shadow DOM) — no
199
+ * manual `litElementPrefix` / `exclude` lists, and nothing for the app to
200
+ * install (`nuxt-ssr-lit` ships as a @mono-lit/helper dependency). Default true.
201
+ * Set false (or keep a manual `nuxt-ssr-lit` module entry) to use the legacy
202
+ * manual wiring.
203
+ */
204
+ ssr?: boolean;
205
+ /**
206
+ * Wrap every LIGHT `<prefix*>` in `<ClientOnly>`. Default: **`nuxt.options.ssr !== false`**.
207
+ *
208
+ * The wrap exists so the server never renders a light-DOM custom element. It has a cost:
209
+ * Nuxt's `<ClientOnly>` renders its slot one tick AFTER it mounts, so the owning page's
210
+ * `onMounted` runs before the `<mono-*>` element exists and a `controlMonoTable(ref)` /
211
+ * `controlMonoForm(ref)` bound there sees `null`. Hence:
212
+ * - `ssr: false` app: nothing renders on the server — no wrap, no `nuxt-ssr-lit`
213
+ * (set `true` to force the legacy wrap anyway).
214
+ * - `ssr: true` app: wrapped by default. Set `false` when the pages are client-only as a
215
+ * WHOLE (route `mode: 'client'`, or `<ClientOnly><NuxtPage/>`) and only a shadow-built
216
+ * shell server-renders: light tags are then left alone (they SSR as inert tags and
217
+ * upgrade in the browser), while the server import-stub and the `<LitWrapper>` wrap of
218
+ * the shadow tags a file imports stay on.
219
+ */
220
+ clientOnly?: boolean;
221
+ /**
222
+ * Tags to ALWAYS treat as shadow (SSR-wrapped) regardless of per-file imports
223
+ * — for components registered once in a shared plugin (e.g. nav/sidebar).
224
+ */
225
+ shadow?: string[];
226
+ /**
227
+ * Packages to add to `vite.resolve.dedupe`. Defaults to the lit family, which
228
+ * MUST resolve to one instance — @mono-lit/helper's externalized shadow build and
229
+ * `@lit-labs/ssr` / `nuxt-ssr-lit` otherwise get separate lit-html copies and
230
+ * hydration dies with `currentDirective._$initialize is not a function`.
231
+ * Merged with whatever the app already lists. Pass `false` to opt out.
232
+ */
233
+ dedupe?: string[] | false;
234
+ /**
235
+ * Packages to add to `vite.optimizeDeps.include`. Pre-bundling these keeps the
236
+ * optimize-deps hash stable, so Vite doesn't discover them mid-session on the
237
+ * first federated-route visit, re-optimize, and re-fetch @mono-lit/helper's chunks
238
+ * under a new `?v=` — which re-evaluates its `@customElement()` side effects
239
+ * and throws `'mono-nav' has already been defined`.
240
+ *
241
+ * Defaults to `['@mono-lit/devextreme']`. Entries that don't resolve from the app
242
+ * are dropped, because Vite hard-fails on an unresolvable include. Add your
243
+ * app's own federated-only deps here (or keep them in `vite.optimizeDeps`).
244
+ * Pass `false` to opt out.
245
+ */
246
+ optimizeInclude?: string[] | false;
247
+ /**
248
+ * The tooltip addon — the Nuxt twin of `createMonoTooltip({...})` in a Vue
249
+ * `main.ts`. `true` (or an options object) turns on the `mono-tooltip-content`
250
+ * attributes app-wide; the options WIN over those passed to `controlMonoTooltip`.
251
+ * Applied by a client-only plugin, so they must be JSON (no `content` /
252
+ * `onShow` functions, no nodes). Needs the optional peers `@floating-ui/dom` +
253
+ * `@floating-ui/core`.
254
+ */
255
+ tooltip?: MonoTooltipGlobalOptions | boolean;
256
+ /**
257
+ * App-wide default props for every mono component — the Nuxt twin of
258
+ * `createMonoUI({...})` in a Vue `main.ts`:
259
+ * ui: { 'mono-button': { size: 'xs' }, 'mono-input': { size: 'sm' } }
260
+ * One key covers the light and the shadow build. Applied by an EARLY plugin on
261
+ * the server AND the client (shadow SSR must render with the same defaults the
262
+ * browser hydrates with). Must be JSON.
263
+ */
264
+ ui?: MonoUIConfig;
265
+ /**
266
+ * The automatic skeleton (`pending` on every mono element, drawn by phantom-ui). BUILT
267
+ * IN and ZERO-CONFIG: when the optional peer `@aejkatappaja/phantom-ui` resolves from the
268
+ * app, the module loads it in a client plugin before anything mounts and tells mono
269
+ * whether this is an SSR app (`nuxt.options.ssr`, which decides the automatic default of
270
+ * light elements). Not installed → nothing happens and `pending` is a no-op.
271
+ * `false` turns it off even when installed; an object sets the GLOBAL phantom defaults
272
+ * (`{ animation: 'pulse', duration: 1.2 }`) — the same as `createMonoUI({ skeleton })`.
273
+ * Must be JSON.
274
+ */
275
+ skeleton?: false | MonoSkeletonDefaults;
276
+ }
277
+ //#endregion
278
+ //#region src/nuxt/host-nuxt.d.ts
279
+ /**
280
+ * One ecosystem unit: discover folder(s) across every remote (via
281
+ * `mergeEcosystem`) and wire each into one Nuxt API. Carries the full
282
+ * `mergeEcosystem` discovery props (minus `dirname`, always the Nuxt rootDir,
283
+ * and `map`, used internally) plus a `type` destination.
284
+ */
285
+ interface EcosystemEntry extends Omit<MergeEcosystemOptions<string>, 'dirname' | 'map'> {
286
+ /**
287
+ * Destination: auto-imports (composables/stores), components, pages ->
288
+ * routes, or one of the shell folders a remote inherits from its host —
289
+ * layouts, middleware, plugins.
290
+ */
291
+ type: EcosystemType;
292
+ /**
293
+ * Type-aware subpath(s) relative to each remote's srcDir — e.g. `'pages'`.
294
+ * Resolved per remote via its `type` (`vue` -> `src/<rel>`, `nuxt` ->
295
+ * `app/<rel>`). Preferred over `dir`; the built-in defaults use it. When set,
296
+ * `dir`/`sub` are ignored (folders come from `monoEcosystem`).
297
+ */
298
+ relDir?: string | string[];
299
+ /** Toggle without removing the entry. Default true. */
300
+ enabled?: boolean;
301
+ /** `components` only — prefix component names with their path. Default true. */
302
+ pathPrefix?: boolean;
303
+ /**
304
+ * `pages` / `layouts` / `middleware` / `plugins` — file globs (relative to
305
+ * each dir) to skip.
306
+ *
307
+ * For `pages` the default is derived from disk rather than hardcoded: an app
308
+ * that ships its own `pages/index.vue` owns `/`, so the federated root
309
+ * `index.vue` is excluded; an app that does not (every remote, which takes the
310
+ * host's login page as `/`) lets it through. Deeper `<folder>/index.vue` pages
311
+ * are always merged in. For the other three the default is no exclusions —
312
+ * the own-file-wins rule already covers replacement.
313
+ */
314
+ exclude?: string[];
315
+ }
316
+ interface MonoModuleOptions {
317
+ /**
318
+ * Merge remote folders into Nuxt. Name-keyed; each entry carries full
319
+ * `mergeEcosystem` discovery props (`dir`, `sub`, `appDir`, `appDirs`,
320
+ * `includes`/`excludes`, `dirIncludes`/`dirExcludes`) plus a `type`
321
+ * destination. `dirname` is always the Nuxt rootDir. Set an entry to `false`
322
+ * to disable it.
323
+ *
324
+ * The built-in defaults wire pages/composables/stores/components for every
325
+ * role, plus the shell a REMOTE inherits from its host — layouts (unless
326
+ * `template: 'host'`) and, on an explicit `template: 'remote'`, middleware and
327
+ * plugins. See `nuxtEcosystemDefaults`. Your entries merge with them by key,
328
+ * so you can override one (restate its `type`), add new ones, or disable a
329
+ * default with `false`.
330
+ * ecosystem: {
331
+ * components: false, // disable a default
332
+ * widgets: { type: 'components', dir: 'src/widgets' }, // add a new one
333
+ * middleware: { type: 'middleware', relDir: 'middleware' }, // host opt-in
334
+ * }
335
+ */
336
+ ecosystem?: Record<string, EcosystemEntry | false>;
337
+ /**
338
+ * Override/extend the auto-computed `monoAlias` map. Each entry's `dir` is
339
+ * resolved against the Nuxt rootDir (absolute paths kept as-is). Example:
340
+ * alias: { '@mono-host': { dir: 'app' } }
341
+ */
342
+ alias?: Record<string, {
343
+ dir: string;
344
+ }>;
345
+ /** Packages excluded from Vite dep pre-bundling (web-components dedup). Default ['@mono-lit/helper']. */
346
+ optimizeExclude?: string[];
347
+ /**
348
+ * Customize the client-exposed config global `__MONO_CONFIG_EXPOSE__`.
349
+ * Receives the resolved mono config; return the (serialisable) object to
350
+ * expose. Defaults to a trimmed, browser-safe subset
351
+ * (`name`/`apps`/`cookie`/`jwt`/`menu` + `fetching.auth`) — never the full
352
+ * `fetching.api`. Spread `config` to expose everything, or pick your own keys:
353
+ * expose: (c) => ({ name: c.name, apps: c.apps, theme: c.theme })
354
+ */
355
+ expose?: (config: MonoConfig) => Record<string, unknown>;
356
+ /**
357
+ * Let the config chain load when a federated app isn't synced into
358
+ * `.mono/apps/`: its `mono.config` import resolves to an empty config instead of
359
+ * throwing `Cannot find module '@<app>-root/mono.config'`. Only that specifier is
360
+ * stubbed — app code importing a missing app still fails. Default true.
361
+ */
362
+ stubMissing?: boolean;
363
+ /** Warn (once) naming the apps that were stubbed. Default true. */
364
+ warnMissing?: boolean;
365
+ /**
366
+ * Rewrite `<RouterLink>` -> `<NuxtLink>` in synced remote templates, so a Vue
367
+ * remote's links get Nuxt's prefetching / external-URL handling instead of
368
+ * rendering as plain vue-router links. Default true.
369
+ */
370
+ nuxtLink?: boolean;
371
+ /**
372
+ * Namespaced form. This module reads its options from `mono.utils`; the
373
+ * sibling `@mono-lit/helper/nuxt` module reads `mono.helper`. The flat shape above
374
+ * (`mono.alias`, `mono.ecosystem`, …) is still honored for back-compat.
375
+ * mono: { utils: { alias: { … } }, helper: { … } }
376
+ */
377
+ utils?: Omit<MonoModuleOptions, 'utils' | 'helper'>;
378
+ /**
379
+ * Options consumed by `@mono-lit/helper/nuxt` (SSR/UI helper module). Typed via a
380
+ * type-only import from `@mono-lit/helper/nuxt` — @mono-lit/helper is a workspace
381
+ * devDependency of @mono-lit/utility (no runtime dependency: the import is erased,
382
+ * and @mono-lit/helper itself doesn't import @mono-lit/utility). So the real shape
383
+ * (`css` / `customElement` / `ssr` / `shadow` / `MonoSsrOptions`) ships in
384
+ * `dist/nuxt.d.ts` and `mono.helper` gets full autocomplete in `nuxt.config.ts`.
385
+ */
386
+ helper?: MonoHelperModuleOptions;
387
+ }
388
+ declare const monoNuxtModule: NuxtModule<MonoModuleOptions, MonoModuleOptions, false>;
389
+ //#endregion
390
+ export { type EcosystemEntry, type EcosystemType, type MonoModuleOptions, monoNuxtModule as default };