@mono-lit/utility 0.0.0-stage → 0.0.1

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