@nuxt/webpack-builder 3.20.2 → 3.21.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 (33) hide show
  1. package/README.md +5 -3
  2. package/dist/THIRD-PARTY-LICENSES.md +3847 -0
  3. package/dist/_chunks/libs/@babel/parser.d.mts +1536 -0
  4. package/dist/_chunks/libs/@jridgewell/trace-mapping.d.mts +82 -0
  5. package/dist/_chunks/libs/@types/estree.d.mts +525 -0
  6. package/dist/_chunks/libs/@types/pug.d.mts +123 -0
  7. package/dist/_chunks/libs/@unhead/vue.d.mts +1096 -0
  8. package/dist/_chunks/libs/@vitejs/plugin-vue-jsx.d.mts +5297 -0
  9. package/dist/_chunks/libs/@vitejs/plugin-vue.d.mts +83 -0
  10. package/dist/_chunks/libs/@volar/language-core.d.mts +56 -0
  11. package/dist/_chunks/libs/@volar/source-map.d.mts +10 -0
  12. package/dist/_chunks/libs/@vue/compiler-core.d.mts +1213 -0
  13. package/dist/_chunks/libs/@vue/compiler-dom.d.mts +45 -0
  14. package/dist/_chunks/libs/@vue/language-core.d.mts +11387 -0
  15. package/dist/_chunks/libs/c12.d.mts +147 -0
  16. package/dist/_chunks/libs/compatx.d.mts +47 -0
  17. package/dist/_chunks/libs/h3.d.mts +45 -0
  18. package/dist/_chunks/libs/ofetch.d.mts +870 -0
  19. package/dist/_chunks/libs/open.d.mts +1 -0
  20. package/dist/_chunks/libs/oxc-transform.d.mts +422 -0
  21. package/dist/_chunks/libs/pkg-types.d.mts +23 -0
  22. package/dist/_chunks/libs/rollup-plugin-visualizer.d.mts +90 -0
  23. package/dist/_chunks/libs/scule.d.mts +15 -0
  24. package/dist/_chunks/libs/unctx.d.mts +28 -0
  25. package/dist/_chunks/libs/unimport.d.mts +386 -0
  26. package/dist/_chunks/libs/untyped.d.mts +44 -0
  27. package/dist/_chunks/libs/vue-router.d.mts +1413 -0
  28. package/dist/_chunks/rolldown-runtime.mjs +12 -0
  29. package/dist/index.d.mts +3150 -4
  30. package/dist/index.mjs +1310 -1155
  31. package/dist/loaders/vue-module-identifier.mjs +11 -0
  32. package/package.json +31 -27
  33. package/dist/index.d.ts +0 -5
@@ -0,0 +1,1096 @@
1
+ import { ComputedRef } from "vue";
2
+
3
+ //#region ../../node_modules/.pnpm/hookable@6.0.1/node_modules/hookable/dist/index.d.mts
4
+ type CreateTask = (name?: string) => {
5
+ run: (function_: () => Promise<any> | any) => Promise<any> | any;
6
+ };
7
+ declare global {
8
+ interface Console {
9
+ createTask?: CreateTask;
10
+ }
11
+ }
12
+ /** @deprecated */
13
+ //#endregion
14
+ //#region ../../node_modules/.pnpm/unhead@2.1.3/node_modules/unhead/dist/shared/unhead.BUCuVRIf.d.ts
15
+ type Booleanable = boolean | 'false' | 'true' | '';
16
+ type Stringable = string | Booleanable | number;
17
+ type Falsy = false | null | undefined;
18
+ type ResolvableValue<T> = T | Falsy | (() => (T | Falsy));
19
+ type ResolvableProperties<T> = { [key in keyof T]?: ResolvableValue<T[key]> };
20
+ interface DataKeys {
21
+ [key: `data-${string}`]: Stringable;
22
+ }
23
+ interface HttpEventAttributes {
24
+ /**
25
+ * Script to be run on abort
26
+ */
27
+ onabort?: string;
28
+ /**
29
+ * Script to be run when an error occurs when the file is being loaded
30
+ */
31
+ onerror?: string;
32
+ /**
33
+ * Script to be run when the file is loaded
34
+ */
35
+ onload?: string;
36
+ /**
37
+ * The progress event is fired periodically when a request receives more data.
38
+ */
39
+ onprogress?: string;
40
+ /**
41
+ * Script to be run just as the file begins to load before anything is actually loaded
42
+ */
43
+ onloadstart?: string;
44
+ }
45
+ interface Base {
46
+ /**
47
+ * The base URL to be used throughout the document for relative URLs. Absolute and relative URLs are allowed.
48
+ *
49
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base#attr-href
50
+ */
51
+ href?: string;
52
+ /**
53
+ * A keyword or author-defined name of the default browsing context to show the results of navigation from `<a>`,
54
+ * `<area>`, or `<form>` elements without explicit target attributes.
55
+ *
56
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base#attr-target
57
+ */
58
+ target?: string;
59
+ }
60
+ interface GlobalAttributes {
61
+ /**
62
+ * Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a
63
+ * space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout.
64
+ *
65
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey
66
+ */
67
+ accesskey?: string;
68
+ /**
69
+ * Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
70
+ *
71
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize
72
+ */
73
+ autocapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
74
+ /**
75
+ * Indicates that an element is to be focused on page load, or as soon as the `<dialog>` it is part of is displayed.
76
+ *
77
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus
78
+ */
79
+ autofocus?: Booleanable;
80
+ /**
81
+ * A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access
82
+ * specific elements via the class selectors or functions like the method Document.getElementsByClassName().
83
+ *
84
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
85
+ */
86
+ class?: Stringable;
87
+ /**
88
+ * An enumerated attribute indicating if the element should be editable by the user.
89
+ * If so, the browser modifies its widget to allow editing.
90
+ *
91
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable
92
+ */
93
+ contenteditable?: Booleanable;
94
+ /**
95
+ * An enumerated attribute indicating the directionality of the element's text.
96
+ *
97
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir
98
+ */
99
+ dir?: 'ltr' | 'rtl' | 'auto';
100
+ /**
101
+ * An enumerated attribute indicating whether the element can be dragged, using the Drag and Drop API.
102
+ *
103
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/draggable
104
+ */
105
+ draggable?: Booleanable;
106
+ /**
107
+ * Hints what action label (or icon) to present for the enter key on virtual keyboards.
108
+ *
109
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint
110
+ */
111
+ enterkeyhint?: string;
112
+ /**
113
+ * Used to transitively export shadow parts from a nested shadow tree into a containing light tree.
114
+ *
115
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts
116
+ */
117
+ exportparts?: string;
118
+ /**
119
+ * A Boolean attribute indicates that the element is not yet, or is no longer, relevant.
120
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden
121
+ */
122
+ hidden?: Booleanable;
123
+ /**
124
+ * The id global attribute defines a unique identifier (ID) which must be unique in the whole document.
125
+ *
126
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
127
+ */
128
+ id?: string;
129
+ /**
130
+ * Provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents.
131
+ *
132
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode
133
+ */
134
+ inputmode?: string;
135
+ /**
136
+ * Allows you to specify that a standard HTML element should behave like a registered custom built-in element.
137
+ *
138
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/is
139
+ */
140
+ is?: string;
141
+ /**
142
+ * The unique, global identifier of an item.
143
+ *
144
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/itemid
145
+ */
146
+ itemid?: string;
147
+ /**
148
+ * Used to add properties to an item.
149
+ *
150
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/itemprop
151
+ */
152
+ itemprop?: string;
153
+ /**
154
+ * Properties that are not descendants of an element with the itemscope attribute can be associated with the item using an itemref.
155
+ *
156
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/itemref
157
+ */
158
+ itemref?: string;
159
+ /**
160
+ * itemscope (usually) works along with itemtype to specify that the HTML contained in a block is about a particular item.
161
+ *
162
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/itemscope
163
+ */
164
+ itemscope?: string;
165
+ /**
166
+ * Specifies the URL of the vocabulary that will be used to define itemprops (item properties) in the data structure.
167
+ *
168
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/itemtype
169
+ */
170
+ itemtype?: string;
171
+ /**
172
+ * Helps define the language of an element: the language that non-editable elements are in, or the language
173
+ * that editable elements should be written in by the user.
174
+ *
175
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang
176
+ */
177
+ lang?: string;
178
+ /**
179
+ * A cryptographic nonce ("number used once") which can be used by Content Security Policy to determine whether or not
180
+ * a given fetch will be allowed to proceed.
181
+ *
182
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce
183
+ */
184
+ nonce?: string;
185
+ /**
186
+ * A space-separated list of the part names of the element. Part names allows CSS to select and style specific elements
187
+ * in a shadow tree via the ::part pseudo-element.
188
+ *
189
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part
190
+ */
191
+ part?: string;
192
+ /**
193
+ * Assigns a slot in a shadow DOM shadow tree to an element: An element with a slot attribute is assigned to the slot
194
+ * created by the `<slot>` element whose name attribute's value matches that slot attribute's value.
195
+ *
196
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/slot
197
+ */
198
+ slot?: string;
199
+ /**
200
+ * An enumerated attribute defines whether the element may be checked for spelling errors.
201
+ *
202
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck
203
+ */
204
+ spellcheck?: Booleanable;
205
+ /**
206
+ * Contains CSS styling declarations to be applied to the element.
207
+ *
208
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/style
209
+ */
210
+ style?: string;
211
+ /**
212
+ * An integer attribute indicating if the element can take input focus (is focusable),
213
+ * if it should participate to sequential keyboard navigation, and if so, at what position.
214
+ *
215
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
216
+ */
217
+ tabindex?: number;
218
+ /**
219
+ * Contains a text representing advisory information related to the element it belongs to.
220
+ *
221
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title
222
+ */
223
+ title?: string;
224
+ /**
225
+ * An enumerated attribute that is used to specify whether an element's attribute values and the values of its
226
+ * Text node children are to be translated when the page is localized, or whether to leave them unchanged.
227
+ *
228
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/translate
229
+ */
230
+ translate?: 'yes' | 'no' | '';
231
+ }
232
+ interface BodyEvents {
233
+ /**
234
+ * Script to be run after the document is printed
235
+ */
236
+ onafterprint?: string;
237
+ /**
238
+ * Script to be run before the document is printed
239
+ */
240
+ onbeforeprint?: string;
241
+ /**
242
+ * Script to be run when the document is about to be unloaded
243
+ */
244
+ onbeforeunload?: string;
245
+ /**
246
+ * Script to be run when an error occurs
247
+ */
248
+ onerror?: string;
249
+ /**
250
+ * Script to be run when there has been changes to the anchor part of the a URL
251
+ */
252
+ onhashchange?: string;
253
+ /**
254
+ * Fires after the page is finished loading
255
+ */
256
+ onload?: string;
257
+ /**
258
+ * Script to be run when the message is triggered
259
+ */
260
+ onmessage?: string;
261
+ /**
262
+ * Script to be run when the browser starts to work offline
263
+ */
264
+ onoffline?: string;
265
+ /**
266
+ * Script to be run when the browser starts to work online
267
+ */
268
+ ononline?: string;
269
+ /**
270
+ * Script to be run when a user navigates away from a page
271
+ */
272
+ onpagehide?: string;
273
+ /**
274
+ * Script to be run when a user navigates to a page
275
+ */
276
+ onpageshow?: string;
277
+ /**
278
+ * Script to be run when the window's history changes
279
+ */
280
+ onpopstate?: string;
281
+ /**
282
+ * Fires when the browser window is resized
283
+ */
284
+ onresize?: string;
285
+ /**
286
+ * Script to be run when a Web Storage area is updated
287
+ */
288
+ onstorage?: string;
289
+ /**
290
+ * Fires once a page has unloaded (or the browser window has been closed)
291
+ */
292
+ onunload?: string;
293
+ }
294
+ interface BodyAttributesWithoutEvents extends Pick<GlobalAttributes, 'class' | 'style' | 'id'> {}
295
+ interface HtmlAttributes extends Pick<GlobalAttributes, 'lang' | 'dir' | 'translate' | 'class' | 'style' | 'id'> {
296
+ /**
297
+ * Open-graph protocol prefix.
298
+ *
299
+ * @see https://ogp.me/
300
+ */
301
+ prefix?: 'og: https://ogp.me/ns#' | (string & Record<never, never>);
302
+ /**
303
+ * XML namespace
304
+ *
305
+ * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Namespaces_Crash_Course
306
+ */
307
+ xmlns?: string;
308
+ /**
309
+ * Custom XML namespace
310
+ *
311
+ * @See https://developer.mozilla.org/en-US/docs/Web/SVG/Namespaces_Crash_Course
312
+ */
313
+ [key: `xmlns:${'og' | string}`]: string;
314
+ }
315
+ type ReferrerPolicy = '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
316
+ /**
317
+ * Represents the possible blocking tokens for an element.
318
+ */
319
+ type BlockingToken = 'render';
320
+ /**
321
+ * Represents the blocking attribute for an element.
322
+ * The blocking attribute must have a value that is an unordered set of unique space-separated tokens,
323
+ * each of which are possible blocking tokens.
324
+ */
325
+ interface Blocking {
326
+ /**
327
+ * The blocking attribute indicates that certain operations should be blocked on the fetching of an external resource.
328
+ * The value is an unordered set of unique space-separated tokens, each of which are possible blocking tokens.
329
+ *
330
+ * @example
331
+ * blocking: "render"
332
+ */
333
+ blocking?: BlockingToken | string;
334
+ }
335
+ type LinkRelTypes = 'alternate' | 'author' | 'shortcut icon' | 'bookmark' | 'canonical' | 'dns-prefetch' | 'external' | 'help' | 'icon' | 'license' | 'manifest' | 'me' | 'modulepreload' | 'next' | 'nofollow' | 'noopener' | 'noreferrer' | 'opener' | 'pingback' | 'preconnect' | 'prefetch' | 'preload' | 'prerender' | 'prev' | 'search' | 'shortlink' | 'stylesheet' | 'tag' | 'apple-touch-icon' | 'apple-touch-startup-image';
336
+ interface LinkWithoutEvents extends Pick<GlobalAttributes, 'nonce' | 'id'>, Blocking {
337
+ /**
338
+ * This attribute is only used when rel="preload" or rel="prefetch" has been set on the `<link>` element.
339
+ * It specifies the type of content being loaded by the `<link>`, which is necessary for request matching,
340
+ * application of correct content security policy, and setting of correct Accept request header.
341
+ * Furthermore, rel="preload" uses this as a signal for request prioritization.
342
+ *
343
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
344
+ */
345
+ as?: 'audio' | 'document' | 'embed' | 'fetch' | 'font' | 'image' | 'object' | 'script' | 'style' | 'track' | 'video' | 'worker';
346
+ /**
347
+ * The color attribute is used with the mask-icon link type.
348
+ * The attribute must only be specified on link elements that have a rel attribute
349
+ * that contains the mask-icon keyword.
350
+ * The value must be a string that matches the CSS `<color>` production,
351
+ * defining a suggested color that user agents can use to customize the display
352
+ * of the icon that the user sees when they pin your site.
353
+ *
354
+ * @see https://html.spec.whatwg.org/multipage/semantics.html#attr-link-color
355
+ */
356
+ color?: string;
357
+ /**
358
+ * This enumerated attribute indicates whether CORS must be used when fetching the resource.
359
+ * CORS-enabled images can be reused in the `<canvas>` element without being tainted.
360
+ *
361
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-crossorigin
362
+ */
363
+ crossorigin?: '' | 'anonymous' | 'use-credentials';
364
+ /**
365
+ * Provides a hint of the relative priority to use when fetching a preloaded resource.
366
+ *
367
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-fetchpriority
368
+ */
369
+ fetchpriority?: 'high' | 'low' | 'auto';
370
+ /**
371
+ * This attribute specifies the URL of the linked resource. A URL can be absolute or relative.
372
+ *
373
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-href
374
+ */
375
+ href?: string;
376
+ /**
377
+ * This attribute indicates the language of the linked resource. It is purely advisory.
378
+ * Allowed values are specified by RFC 5646: Tags for Identifying Languages (also known as BCP 47).
379
+ * Use this attribute only if the href attribute is present.
380
+ *
381
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-hreflang
382
+ */
383
+ hreflang?: string;
384
+ /**
385
+ * For rel="preload" and as="image" only, the imagesizes attribute is a sizes attribute that indicates to preload
386
+ * the appropriate resource used by an img element with corresponding values for its srcset and sizes attributes.
387
+ *
388
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-imagesizes
389
+ */
390
+ imagesizes?: string;
391
+ /**
392
+ * For rel="preload" and as="image" only, the imagesrcset attribute is a sourceset attribute that indicates
393
+ * to preload the appropriate resource used by an img element with corresponding values for its srcset and
394
+ * sizes attributes.
395
+ *
396
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-imagesrcset
397
+ */
398
+ imagesrcset?: string;
399
+ /**
400
+ * Contains inline metadata — a base64-encoded cryptographic hash of the resource (file)
401
+ * you're telling the browser to fetch.
402
+ * The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation.
403
+ *
404
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-integrity
405
+ */
406
+ integrity?: string;
407
+ /**
408
+ * This attribute specifies the media that the linked resource applies to.
409
+ * Its value must be a media type / media query.
410
+ * This attribute is mainly useful when linking to external stylesheets —
411
+ * it allows the user agent to pick the best adapted one for the device it runs on.
412
+ *
413
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-integrity
414
+ */
415
+ media?: string;
416
+ /**
417
+ * Identifies a resource that might be required by the next navigation and that the user agent should retrieve it.
418
+ * This allows the user agent to respond faster when the resource is requested in the future.
419
+ *
420
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-prefetch
421
+ */
422
+ prefetch?: string;
423
+ /**
424
+ * A string indicating which referrer to use when fetching the resource.
425
+ *
426
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-referrerpolicy
427
+ */
428
+ referrerpolicy?: ReferrerPolicy;
429
+ /**
430
+ * This attribute names a relationship of the linked document to the current document.
431
+ * The attribute must be a space-separated list of link type values.
432
+ *
433
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel
434
+ */
435
+ rel?: LinkRelTypes | (string & Record<never, never>);
436
+ /**
437
+ * This attribute defines the sizes of the icons for visual media contained in the resource.
438
+ * It must be present only if the rel contains a value of icon or a non-standard type
439
+ * such as Apple's apple-touch-icon.
440
+ *
441
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-sizes
442
+ */
443
+ sizes?: 'any' | '16x16' | '32x32' | '64x64' | '180x180' | (string & Record<never, never>);
444
+ /**
445
+ * The title attribute has special semantics on the `<link>` element.
446
+ * When used on a `<link rel="stylesheet">` it defines a default or an alternate stylesheet.
447
+ *
448
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-title
449
+ */
450
+ title?: string;
451
+ /**
452
+ * This attribute is used to define the type of the content linked to.
453
+ * The value of the attribute should be a MIME type such as text/html, text/css, and so on.
454
+ * The common use of this attribute is to define the type of stylesheet being referenced (such as text/css),
455
+ * but given that CSS is the only stylesheet language used on the web,
456
+ * not only is it possible to omit the type attribute, but is actually now recommended practice.
457
+ * It is also used on rel="preload" link types, to make sure the browser only downloads file types that it supports.
458
+ *
459
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-type
460
+ */
461
+ type?: 'audio/aac' | 'application/x-abiword' | 'application/x-freearc' | 'image/avif' | 'video/x-msvideo' | 'application/vnd.amazon.ebook' | 'application/octet-stream' | 'image/bmp' | 'application/x-bzip' | 'application/x-bzip2' | 'application/x-cdf' | 'application/x-csh' | 'text/css' | 'text/csv' | 'application/msword' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | 'application/vnd.ms-fontobject' | 'application/epub+zip' | 'application/gzip' | 'image/gif' | 'text/html' | 'image/vnd.microsoft.icon' | 'text/calendar' | 'application/java-archive' | 'image/jpeg' | 'text/javascript' | 'application/json' | 'application/ld+json' | 'audio/midi' | 'audio/x-midi' | 'audio/mpeg' | 'video/mp4' | 'video/mpeg' | 'application/vnd.apple.installer+xml' | 'application/vnd.oasis.opendocument.presentation' | 'application/vnd.oasis.opendocument.spreadsheet' | 'application/vnd.oasis.opendocument.text' | 'audio/ogg' | 'video/ogg' | 'application/ogg' | 'audio/opus' | 'font/otf' | 'image/png' | 'application/pdf' | 'application/x-httpd-php' | 'application/vnd.ms-powerpoint' | 'application/vnd.openxmlformats-officedocument.presentationml.presentation' | 'application/vnd.rar' | 'application/rtf' | 'application/x-sh' | 'image/svg+xml' | 'application/x-tar' | 'image/tiff' | 'video/mp2t' | 'font/ttf' | 'text/plain' | 'application/vnd.visio' | 'audio/wav' | 'audio/webm' | 'video/webm' | 'image/webp' | 'font/woff' | 'font/woff2' | 'application/xhtml+xml' | 'application/vnd.ms-excel' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'text/xml' | 'application/atom+xml' | 'application/xml' | 'application/vnd.mozilla.xul+xml' | 'application/zip' | 'video/3gpp' | 'audio/3gpp' | 'video/3gpp2' | 'audio/3gpp2' | (string & Record<never, never>);
462
+ }
463
+ type MetaNames = 'apple-itunes-app' | 'apple-mobile-web-app-capable' | 'apple-mobile-web-app-status-bar-style' | 'apple-mobile-web-app-title' | 'application-name' | 'author' | 'charset' | 'color-scheme' | 'content-security-policy' | 'content-type' | 'creator' | 'default-style' | 'description' | 'fb:app_id' | 'format-detection' | 'generator' | 'google-site-verification' | 'google' | 'googlebot' | 'keywords' | 'mobile-web-app-capable' | 'msapplication-Config' | 'msapplication-TileColor' | 'msapplication-TileImage' | 'publisher' | 'rating' | 'referrer' | 'refresh' | 'robots' | 'theme-color' | 'twitter:app:id:googleplay' | 'twitter:app:id:ipad' | 'twitter:app:id:iphone' | 'twitter:app:name:googleplay' | 'twitter:app:name:ipad' | 'twitter:app:name:iphone' | 'twitter:app:url:googleplay' | 'twitter:app:url:ipad' | 'twitter:app:url:iphone' | 'twitter:card' | 'twitter:creator:id' | 'twitter:creator' | 'twitter:data:1' | 'twitter:data:2' | 'twitter:description' | 'twitter:image:alt' | 'twitter:image' | 'twitter:label:1' | 'twitter:label:2' | 'twitter:player:height' | 'twitter:player:stream' | 'twitter:player:width' | 'twitter:player' | 'twitter:site:id' | 'twitter:site' | 'twitter:title' | 'viewport' | 'x-ua-compatible';
464
+ type MetaProperties = 'article:author' | 'article:expiration_time' | 'article:modified_time' | 'article:published_time' | 'article:section' | 'article:tag' | 'book:author' | 'book:isbn' | 'book:release_data' | 'book:tag' | 'fb:app:id' | 'og:audio:secure_url' | 'og:audio:type' | 'og:audio:url' | 'og:description' | 'og:determiner' | 'og:image:height' | 'og:image:secure_url' | 'og:image:type' | 'og:image:url' | 'og:image:width' | 'og:image' | 'og:locale:alternate' | 'og:locale' | 'og:site:name' | 'og:title' | 'og:type' | 'og:url' | 'og:video:height' | 'og:video:secure_url' | 'og:video:type' | 'og:video:url' | 'og:video:width' | 'og:video' | 'profile:first_name' | 'profile:gender' | 'profile:last_name' | 'profile:username';
465
+ interface Meta extends Pick<GlobalAttributes, 'id'> {
466
+ /**
467
+ * This attribute declares the document's character encoding.
468
+ * If the attribute is present, its value must be an ASCII case-insensitive match for the string "utf-8",
469
+ * because UTF-8 is the only valid encoding for HTML5 documents.
470
+ * `<meta>` elements which declare a character encoding must be located entirely within the first 1024 bytes
471
+ * of the document.
472
+ *
473
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset
474
+ */
475
+ charset?: 'utf-8' | (string & Record<never, never>);
476
+ /**
477
+ * This attribute contains the value for the http-equiv or name attribute, depending on which is used.
478
+ *
479
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content
480
+ */
481
+ content?: Stringable;
482
+ /**
483
+ * Defines a pragma directive. The attribute is named http-equiv(alent) because all the allowed values are names of
484
+ * particular HTTP headers.
485
+ *
486
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv
487
+ */
488
+ ['http-equiv']?: 'content-security-policy' | 'content-type' | 'default-style' | 'x-ua-compatible' | 'refresh' | 'accept-ch' | (string & Record<never, never>);
489
+ /**
490
+ * The name and content attributes can be used together to provide document metadata in terms of name-value pairs,
491
+ * with the name attribute giving the metadata name, and the content attribute giving the value.
492
+ *
493
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-name
494
+ */
495
+ name?: MetaNames | (string & Record<never, never>);
496
+ /**
497
+ * The property attribute is used to define a property associated with the content attribute.
498
+ *
499
+ * Mainly used for og and twitter meta tags.
500
+ */
501
+ property?: MetaProperties | (string & Record<never, never>);
502
+ /**
503
+ * A valid media query list that can be included to set the media the `theme-color` metadata applies to.
504
+ *
505
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name/theme-color
506
+ */
507
+ media?: '(prefers-color-scheme: light)' | '(prefers-color-scheme: dark)' | (string & Record<never, never>);
508
+ }
509
+ interface Noscript {
510
+ /**
511
+ * This attribute defines the unique ID.
512
+ */
513
+ id?: string;
514
+ /**
515
+ * The class global attribute is a space-separated list of the case-sensitive classes of the element.
516
+ *
517
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
518
+ */
519
+ class?: string;
520
+ /**
521
+ * The style global attribute contains CSS styling declarations to be applied to the element.
522
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/style
523
+ */
524
+ style?: string;
525
+ }
526
+ interface ScriptWithoutEvents extends Pick<GlobalAttributes, 'nonce' | 'id'>, Blocking {
527
+ /**
528
+ * For classic scripts, if the async attribute is present,
529
+ * then the classic script will be fetched in parallel to parsing and evaluated as soon as it is available.
530
+ *
531
+ * For module scripts,
532
+ * if the async attribute is present then the scripts and all their dependencies will be executed in the defer queue,
533
+ * therefore they will get fetched in parallel to parsing and evaluated as soon as they are available.
534
+ *
535
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-async
536
+ */
537
+ async?: Booleanable;
538
+ /**
539
+ * Normal script elements pass minimal information to the window.onerror
540
+ * for scripts which do not pass the standard CORS checks.
541
+ * To allow error logging for sites which use a separate domain for static media, use this attribute.
542
+ *
543
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-crossorigin
544
+ */
545
+ crossorigin?: '' | 'anonymous' | 'use-credentials';
546
+ /**
547
+ * This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document
548
+ * has been parsed, but before firing DOMContentLoaded.
549
+ *
550
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-defer
551
+ */
552
+ defer?: Booleanable;
553
+ /**
554
+ * Provides a hint of the relative priority to use when fetching an external script.
555
+ *
556
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-fetchpriority
557
+ */
558
+ fetchpriority?: 'high' | 'low' | 'auto';
559
+ /**
560
+ * This attribute contains inline metadata that a user agent can use to verify
561
+ * that a fetched resource has been delivered free of unexpected manipulation.
562
+ *
563
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-integrity
564
+ */
565
+ integrity?: string;
566
+ /**
567
+ * This Boolean attribute is set to indicate that the script should not be executed in browsers
568
+ * that support ES modules — in effect,
569
+ * this can be used to serve fallback scripts to older browsers that do not support modular JavaScript code.
570
+ *
571
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-nomodule
572
+ */
573
+ nomodule?: Booleanable;
574
+ /**
575
+ * Indicates which referrer to send when fetching the script, or resources fetched by the script.
576
+ *
577
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-referrerpolicy
578
+ */
579
+ referrerpolicy?: ReferrerPolicy;
580
+ /**
581
+ * This attribute specifies the URI of an external script;
582
+ * this can be used as an alternative to embedding a script directly within a document.
583
+ *
584
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-src
585
+ */
586
+ src?: string;
587
+ /**
588
+ * This attribute indicates the type of script represented.
589
+ *
590
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-type
591
+ */
592
+ type?: '' | 'text/javascript' | 'module' | 'application/json' | 'application/ld+json' | 'speculationrules' | (string & Record<never, never>);
593
+ /**
594
+ * A custom element name
595
+ *
596
+ * Used by the AMP specification.
597
+ *
598
+ * @see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#custom-elements
599
+ */
600
+ ['custom-element']?: 'amp-story' | 'amp-carousel' | 'amp-ad' | (string & Record<never, never>);
601
+ }
602
+ interface Style extends Pick<GlobalAttributes, 'nonce' | 'id'>, Blocking {
603
+ /**
604
+ * This attribute defines which media the style should be applied to.
605
+ * Its value is a media query, which defaults to all if the attribute is missing.
606
+ *
607
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style#attr-media
608
+ */
609
+ media?: string;
610
+ /**
611
+ * A cryptographic nonce (number used once) used to allow inline styles in a style-src Content-Security-Policy.
612
+ * The server must generate a unique nonce value each time it transmits a policy.
613
+ * It is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial.
614
+ *
615
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style#attr-nonce
616
+ */
617
+ nonce?: string;
618
+ /**
619
+ * This attribute specifies alternative style sheet sets.
620
+ *
621
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style#attr-title
622
+ */
623
+ title?: string;
624
+ }
625
+ interface DeprecatedResolvesDuplicates {
626
+ /**
627
+ * @deprecated You should avoid using keys to dedupe meta as they are automatically deduped.
628
+ * If you need to change the meta tag rendered use tagPriority.
629
+ */
630
+ key?: string;
631
+ /**
632
+ * @deprecated Remove
633
+ */
634
+ tagDuplicateStrategy?: 'replace' | 'merge';
635
+ }
636
+ interface SchemaAugmentations {
637
+ title: TagPriority;
638
+ titleTemplate: TagPriority;
639
+ base: ResolvesDuplicates & TagPriority;
640
+ htmlAttrs: ResolvesDuplicates & TagPriority;
641
+ bodyAttrs: ResolvesDuplicates & TagPriority;
642
+ link: TagPriority & TagPosition & ResolvesDuplicates & ProcessesTemplateParams;
643
+ meta: TagPriority & DeprecatedResolvesDuplicates & ProcessesTemplateParams;
644
+ style: TagPriority & TagPosition & InnerContent & ResolvesDuplicates & ProcessesTemplateParams;
645
+ script: TagPriority & TagPosition & InnerContent & ResolvesDuplicates & ProcessesTemplateParams;
646
+ noscript: TagPriority & TagPosition & InnerContent & ResolvesDuplicates & ProcessesTemplateParams;
647
+ }
648
+ type MaybeArray<T> = T | T[];
649
+ interface UnheadBodyAttributesWithoutEvents extends Omit<BodyAttributesWithoutEvents, 'class' | 'style'> {
650
+ /**
651
+ * The class global attribute is a space-separated list of the case-sensitive classes of the element.
652
+ *
653
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
654
+ */
655
+ class?: MaybeArray<ResolvableValue<Stringable>> | Record<string, ResolvableValue<boolean>>;
656
+ /**
657
+ * The style attribute contains CSS styling declarations to be applied to the element.
658
+ *
659
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/style
660
+ */
661
+ style?: MaybeArray<ResolvableValue<Stringable>> | Record<string, ResolvableValue<Stringable>>;
662
+ }
663
+ interface UnheadHtmlAttributes extends Omit<HtmlAttributes, 'class' | 'style'> {
664
+ /**
665
+ * The class global attribute is a space-separated list of the case-sensitive classes of the element.
666
+ *
667
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
668
+ */
669
+ class?: MaybeArray<ResolvableValue<Stringable>> | Record<string, ResolvableValue<boolean>>;
670
+ /**
671
+ * The style attribute contains CSS styling declarations to be applied to the element.
672
+ *
673
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/style
674
+ */
675
+ style?: MaybeArray<ResolvableValue<Stringable>> | Record<string, ResolvableValue<Stringable>>;
676
+ }
677
+ interface UnheadMeta extends Omit<Meta, 'content'> {
678
+ /**
679
+ * This attribute contains the value for the http-equiv, name or property attribute, depending on which is used.
680
+ *
681
+ * You can provide an array of values to create multiple tags sharing the same name, property or http-equiv.
682
+ *
683
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content
684
+ */
685
+ content?: MaybeArray<Stringable> | null;
686
+ }
687
+ type MaybeEventFnHandlers<T> = { [key in keyof T]?: T[key] | ((e: Event) => void) };
688
+ type ResolvableTitle = ResolvableValue<Stringable> | ResolvableProperties<({
689
+ textContent: string;
690
+ } & SchemaAugmentations['title'])>;
691
+ type ResolvableTitleTemplate = string | ((title?: string) => string | null) | null | ({
692
+ textContent: string | ((title?: string) => string | null);
693
+ } & SchemaAugmentations['titleTemplate']);
694
+ type ResolvableBase = ResolvableProperties<Base & SchemaAugmentations['base']>;
695
+ type ResolvableLink = ResolvableProperties<LinkWithoutEvents & DataKeys & SchemaAugmentations['link']> & MaybeEventFnHandlers<HttpEventAttributes>;
696
+ type ResolvableMeta = ResolvableProperties<UnheadMeta & DataKeys & SchemaAugmentations['meta']>;
697
+ type ResolvableStyle = ResolvableProperties<Style & DataKeys & SchemaAugmentations['style']> | string;
698
+ type ResolvableScript = ResolvableProperties<ScriptWithoutEvents & DataKeys & SchemaAugmentations['script']> & MaybeEventFnHandlers<HttpEventAttributes> | string;
699
+ type ResolvableNoscript = ResolvableProperties<Noscript & DataKeys & SchemaAugmentations['noscript']> | string;
700
+ type ResolvableHtmlAttributes = ResolvableProperties<UnheadHtmlAttributes & DataKeys & SchemaAugmentations['htmlAttrs']>;
701
+ type ResolvableBodyAttributes = ResolvableProperties<UnheadBodyAttributesWithoutEvents & DataKeys & SchemaAugmentations['bodyAttrs']> & MaybeEventFnHandlers<BodyEvents>;
702
+ type ResolvableTemplateParams = {
703
+ separator?: '|' | '-' | '·' | string;
704
+ } & Record<string, null | string | Record<string, string>>;
705
+ interface ResolvableHead {
706
+ /**
707
+ * The `<title>` HTML element defines the document's title that is shown in a browser's title bar or a page's tab.
708
+ * It only contains text; tags within the element are ignored.
709
+ *
710
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title
711
+ */
712
+ title?: ResolvableTitle;
713
+ /**
714
+ * The `<base>` HTML element specifies the base URL to use for all relative URLs in a document.
715
+ * There can be only one <base> element in a document.
716
+ *
717
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
718
+ */
719
+ base?: ResolvableValue<ResolvableBase>;
720
+ /**
721
+ * The `<link>` HTML element specifies relationships between the current document and an external resource.
722
+ * This element is most commonly used to link to stylesheets, but is also used to establish site icons
723
+ * (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.
724
+ *
725
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
726
+ */
727
+ link?: ResolvableValue<ResolvableValue<ResolvableLink>[]>;
728
+ /**
729
+ * The `<meta>` element represents metadata that cannot be expressed in other HTML elements, like `<link>` or `<script>`.
730
+ *
731
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
732
+ */
733
+ meta?: ResolvableValue<ResolvableValue<ResolvableMeta>[]>;
734
+ /**
735
+ * The `<style>` HTML element contains style information for a document, or part of a document.
736
+ * It contains CSS, which is applied to the contents of the document containing the `<style>` element.
737
+ *
738
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
739
+ */
740
+ style?: ResolvableValue<ResolvableValue<(ResolvableStyle)>[]>;
741
+ /**
742
+ * The `<script>` HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
743
+ *
744
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
745
+ */
746
+ script?: ResolvableValue<ResolvableValue<(ResolvableScript)>[]>;
747
+ /**
748
+ * The `<noscript>` HTML element defines a section of HTML to be inserted if a script type on the page is unsupported
749
+ * or if scripting is currently turned off in the browser.
750
+ *
751
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
752
+ */
753
+ noscript?: ResolvableValue<ResolvableValue<(ResolvableNoscript)>[]>;
754
+ /**
755
+ * Attributes for the `<html>` HTML element.
756
+ *
757
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html
758
+ */
759
+ htmlAttrs?: ResolvableValue<ResolvableHtmlAttributes>;
760
+ /**
761
+ * Attributes for the `<body>` HTML element.
762
+ *
763
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
764
+ */
765
+ bodyAttrs?: ResolvableValue<ResolvableBodyAttributes>;
766
+ /**
767
+ * Generate the title from a template.
768
+ *
769
+ * Should include a `%s` placeholder for the title, for example `%s - My Site`.
770
+ */
771
+ titleTemplate?: ResolvableTitleTemplate;
772
+ /**
773
+ * Variables used to substitute in the title and meta content.
774
+ */
775
+ templateParams?: ResolvableTemplateParams;
776
+ }
777
+ interface SerializableHead {
778
+ title?: string;
779
+ titleTemplate?: string;
780
+ base?: Base & DataKeys & SchemaAugmentations['base'];
781
+ templateParams?: Record<string, any>;
782
+ link?: (LinkWithoutEvents & DataKeys & HttpEventAttributes & SchemaAugmentations['link'])[];
783
+ meta?: (Meta & DataKeys & SchemaAugmentations['meta'])[];
784
+ style?: (Style & DataKeys & SchemaAugmentations['style'])[];
785
+ script?: (ScriptWithoutEvents & DataKeys & HttpEventAttributes & SchemaAugmentations['script'])[];
786
+ noscript?: (Noscript & DataKeys & SchemaAugmentations['noscript'])[];
787
+ htmlAttrs?: HtmlAttributes & DataKeys & SchemaAugmentations['htmlAttrs'];
788
+ bodyAttrs?: BodyAttributesWithoutEvents & DataKeys & BodyEvents & SchemaAugmentations['bodyAttrs'];
789
+ }
790
+ interface ResolvesDuplicates {
791
+ /**
792
+ * By default, tags which share the same unique key `name`, `property` are de-duped. To allow duplicates
793
+ * to be made you can provide a unique key for each entry.
794
+ */
795
+ key?: string;
796
+ /**
797
+ * The strategy to use when a duplicate tag is encountered.
798
+ *
799
+ * - `replace` - Replace the existing tag with the new tag
800
+ * - `merge` - Merge the existing tag with the new tag
801
+ *
802
+ * @default 'replace' (some tags will default to 'merge', such as htmlAttr)
803
+ */
804
+ tagDuplicateStrategy?: 'replace' | 'merge';
805
+ }
806
+ type ValidTagPositions = 'head' | 'bodyClose' | 'bodyOpen';
807
+ interface TagPosition {
808
+ /**
809
+ * Specify where to render the tag.
810
+ *
811
+ * @default 'head'
812
+ */
813
+ tagPosition?: ValidTagPositions;
814
+ }
815
+ type InnerContentVal = string | Record<string, any>;
816
+ interface InnerContent {
817
+ /**
818
+ * Text content of the tag.
819
+ *
820
+ * Warning: This is not safe for XSS. Do not use this with user input, use `textContent` instead.
821
+ */
822
+ innerHTML?: InnerContentVal;
823
+ /**
824
+ * Sets the textContent of an element. Safer for XSS.
825
+ */
826
+ textContent?: InnerContentVal;
827
+ }
828
+ interface TagPriority {
829
+ /**
830
+ * The priority for rendering the tag, without this all tags are rendered as they are registered
831
+ * (besides some special tags).
832
+ *
833
+ * The following special tags have default priorities:
834
+ * -2 `<meta charset ...>`
835
+ * -1 `<base>`
836
+ * 0 `<meta http-equiv="content-security-policy" ...>`
837
+ *
838
+ * All other tags have a default priority of 10: `<meta>`, `<script>`, `<link>`, `<style>`, etc
839
+ */
840
+ tagPriority?: number | 'critical' | 'high' | 'low' | `before:${string}` | `after:${string}`;
841
+ }
842
+ type TagKey = keyof ResolvableHead;
843
+ type TemplateParams = {
844
+ separator?: '|' | '-' | '·' | string;
845
+ } & Record<string, null | string | Record<string, string>>;
846
+ interface ProcessesTemplateParams {
847
+ processTemplateParams?: boolean;
848
+ }
849
+ interface HasTemplateParams {
850
+ templateParams?: TemplateParams;
851
+ }
852
+ interface HeadTag extends TagPriority, TagPosition, ResolvesDuplicates, HasTemplateParams {
853
+ tag: TagKey;
854
+ props: Record<string, string>;
855
+ processTemplateParams?: boolean;
856
+ innerHTML?: string;
857
+ textContent?: string;
858
+ /**
859
+ * @internal
860
+ */
861
+ _w?: number;
862
+ /**
863
+ * @internal
864
+ */
865
+ _p?: number;
866
+ /**
867
+ * @internal
868
+ */
869
+ _d?: string;
870
+ /**
871
+ * @internal
872
+ */
873
+ _h?: string;
874
+ /**
875
+ * @internal
876
+ */
877
+ mode?: RuntimeMode;
878
+ }
879
+ interface RenderSSRHeadOptions {
880
+ omitLineBreaks?: boolean;
881
+ resolvedTags?: HeadTag[];
882
+ }
883
+ type RuntimeMode = 'server' | 'client';
884
+ //#endregion
885
+ //#region ../../node_modules/.pnpm/unhead@2.1.3/node_modules/unhead/dist/types.d.ts
886
+ interface AriaAttributes {
887
+ /**
888
+ * Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change
889
+ * notifications defined by the aria-relevant attribute.
890
+ */
891
+ 'role'?: 'alert' | 'alertdialog' | 'application' | 'article' | 'banner' | 'button' | 'checkbox' | 'columnheader' | 'combobox' | 'complementary' | 'contentinfo' | 'definition' | 'dialog' | 'directory' | 'document' | 'feed' | 'figure' | 'form' | 'grid' | 'gridcell' | 'group' | 'heading' | 'img' | 'link' | 'list' | 'listbox' | 'listitem' | 'log' | 'main' | 'marquee' | 'math' | 'menu' | 'menubar' | 'menuitem' | 'menuitemcheckbox' | 'menuitemradio' | 'navigation' | 'note' | 'option' | 'presentation' | 'progressbar' | 'radio' | 'radiogroup' | 'region' | 'row' | 'rowgroup' | 'rowheader' | 'scrollbar' | 'search' | 'searchbox' | 'separator' | 'slider' | 'spinbutton' | 'status' | 'switch' | 'tab' | 'table' | 'tablist' | 'tabpanel' | 'textbox' | 'timer' | 'toolbar' | 'tooltip' | 'tree' | 'treegrid' | 'treeitem';
892
+ /**
893
+ * Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
894
+ */
895
+ 'aria-activedescendant'?: string;
896
+ /**
897
+ * Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change
898
+ * notifications defined by the aria-relevant attribute.
899
+ */
900
+ 'aria-atomic'?: Booleanable;
901
+ /**
902
+ * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for
903
+ * an input and specifies how predictions would be presented if they are made.
904
+ */
905
+ 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';
906
+ /**
907
+ * Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are
908
+ * complete before exposing them to the user.
909
+ */
910
+ 'aria-busy'?: Booleanable;
911
+ /**
912
+ * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
913
+ */
914
+ 'aria-checked'?: Booleanable | 'mixed';
915
+ /**
916
+ * Defines the total number of columns in a table, grid, or treegrid.
917
+ */
918
+ 'aria-colcount'?: number;
919
+ /**
920
+ * Defines an element's column index or position with respect to the total number of columns within a table, grid, or
921
+ * treegrid.
922
+ */
923
+ 'aria-colindex'?: number;
924
+ /**
925
+ * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
926
+ */
927
+ 'aria-colspan'?: number;
928
+ /**
929
+ * Identifies the element (or elements) whose contents or presence are controlled by the current element.
930
+ */
931
+ 'aria-controls'?: string;
932
+ /**
933
+ * Indicates the element that represents the current item within a container or set of related elements.
934
+ */
935
+ 'aria-current'?: Booleanable | 'page' | 'step' | 'location' | 'date' | 'time';
936
+ /**
937
+ * Identifies the element (or elements) that describes the object.
938
+ */
939
+ 'aria-describedby'?: string;
940
+ /**
941
+ * Identifies the element that provides a detailed, extended description for the object.
942
+ */
943
+ 'aria-details'?: string;
944
+ /**
945
+ * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
946
+ */
947
+ 'aria-disabled'?: Booleanable;
948
+ /**
949
+ * Indicates what functions can be performed when a dragged object is released on the drop target.
950
+ */
951
+ 'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup';
952
+ /**
953
+ * Identifies the element that provides an error message for the object.
954
+ */
955
+ 'aria-errormessage'?: string;
956
+ /**
957
+ * Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
958
+ */
959
+ 'aria-expanded'?: Booleanable;
960
+ /**
961
+ * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
962
+ * allows assistive technology to override the general default of reading in document source order.
963
+ */
964
+ 'aria-flowto'?: string;
965
+ /**
966
+ * Indicates an element's "grabbed" state in a drag-and-drop operation.
967
+ */
968
+ 'aria-grabbed'?: Booleanable;
969
+ /**
970
+ * Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by
971
+ * an element.
972
+ */
973
+ 'aria-haspopup'?: Booleanable | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
974
+ /**
975
+ * Indicates whether the element is exposed to an accessibility API.
976
+ */
977
+ 'aria-hidden'?: Booleanable;
978
+ /**
979
+ * Indicates the entered value does not conform to the format expected by the application.
980
+ */
981
+ 'aria-invalid'?: Booleanable | 'grammar' | 'spelling';
982
+ /**
983
+ * Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
984
+ */
985
+ 'aria-keyshortcuts'?: string;
986
+ /**
987
+ * Defines a string value that labels the current element.
988
+ */
989
+ 'aria-label'?: string;
990
+ /**
991
+ * Identifies the element (or elements) that labels the current element.
992
+ */
993
+ 'aria-labelledby'?: string;
994
+ /**
995
+ * Defines the hierarchical level of an element within a structure.
996
+ */
997
+ 'aria-level'?: number;
998
+ /**
999
+ * Indicates that an element will be updated, and describes the types of updates the user agents, assistive
1000
+ * technologies, and user can expect from the live region.
1001
+ */
1002
+ 'aria-live'?: 'off' | 'assertive' | 'polite';
1003
+ /**
1004
+ * Indicates whether an element is modal when displayed.
1005
+ */
1006
+ 'aria-modal'?: Booleanable;
1007
+ /**
1008
+ * Indicates whether a text box accepts multiple lines of input or only a single line.
1009
+ */
1010
+ 'aria-multiline'?: Booleanable;
1011
+ /**
1012
+ * Indicates that the user may select more than one item from the current selectable descendants.
1013
+ */
1014
+ 'aria-multiselectable'?: Booleanable;
1015
+ /**
1016
+ * Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
1017
+ */
1018
+ 'aria-orientation'?: 'horizontal' | 'vertical';
1019
+ /**
1020
+ * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
1021
+ * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
1022
+ */
1023
+ 'aria-owns'?: string;
1024
+ /**
1025
+ * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no
1026
+ * value. A hint could be a sample value or a brief description of the expected format.
1027
+ */
1028
+ 'aria-placeholder'?: string;
1029
+ /**
1030
+ * Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements
1031
+ * in the set are present in the DOM.
1032
+ */
1033
+ 'aria-posinset'?: number;
1034
+ /**
1035
+ * Indicates the current "pressed" state of toggle buttons.
1036
+ */
1037
+ 'aria-pressed'?: Booleanable | 'mixed';
1038
+ /**
1039
+ * Indicates that the element is not editable, but is otherwise operable.
1040
+ */
1041
+ 'aria-readonly'?: Booleanable;
1042
+ /**
1043
+ * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
1044
+ */
1045
+ 'aria-relevant'?: 'additions' | 'additions text' | 'all' | 'removals' | 'text';
1046
+ /**
1047
+ * Indicates that user input is required on the element before a form may be submitted.
1048
+ */
1049
+ 'aria-required'?: Booleanable;
1050
+ /**
1051
+ * Defines a human-readable, author-localized description for the role of an element.
1052
+ */
1053
+ 'aria-roledescription'?: string;
1054
+ /**
1055
+ * Defines the total number of rows in a table, grid, or treegrid.
1056
+ */
1057
+ 'aria-rowcount'?: number;
1058
+ /**
1059
+ * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
1060
+ */
1061
+ 'aria-rowindex'?: number;
1062
+ /**
1063
+ * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
1064
+ */
1065
+ 'aria-rowspan'?: number;
1066
+ /**
1067
+ * Indicates the current "selected" state of various widgets.
1068
+ */
1069
+ 'aria-selected'?: Booleanable;
1070
+ /**
1071
+ * Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
1072
+ */
1073
+ 'aria-setsize'?: number;
1074
+ /**
1075
+ * Indicates if items in a table or grid are sorted in ascending or descending order.
1076
+ */
1077
+ 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other';
1078
+ /**
1079
+ * Defines the maximum allowed value for a range widget.
1080
+ */
1081
+ 'aria-valuemax'?: number;
1082
+ /**
1083
+ * Defines the minimum allowed value for a range widget.
1084
+ */
1085
+ 'aria-valuemin'?: number;
1086
+ /**
1087
+ * Defines the current value for a range widget.
1088
+ */
1089
+ 'aria-valuenow'?: number;
1090
+ /**
1091
+ * Defines the human readable text alternative of aria-valuenow for a range widget.
1092
+ */
1093
+ 'aria-valuetext'?: string;
1094
+ }
1095
+ //#endregion
1096
+ export { type SerializableHead as a, type RenderSSRHeadOptions as i, type DataKeys as n, type GlobalAttributes as r, type AriaAttributes as t };