astro 5.5.5 → 5.6.0

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 (43) hide show
  1. package/client.d.ts +1 -16
  2. package/dist/actions/runtime/utils.d.ts +8 -2
  3. package/dist/assets/runtime.js +5 -29
  4. package/dist/assets/utils/svg.d.ts +1 -4
  5. package/dist/assets/utils/svg.js +2 -2
  6. package/dist/assets/vite-plugin-assets.js +1 -3
  7. package/dist/cli/add/index.js +1 -1
  8. package/dist/container/index.js +1 -1
  9. package/dist/content/content-layer.js +3 -3
  10. package/dist/core/app/index.d.ts +15 -0
  11. package/dist/core/app/index.js +27 -7
  12. package/dist/core/build/index.js +2 -2
  13. package/dist/core/config/index.d.ts +1 -1
  14. package/dist/core/config/schemas/base.d.ts +1110 -0
  15. package/dist/core/config/{schema.js → schemas/base.js} +8 -254
  16. package/dist/core/config/schemas/index.d.ts +3 -0
  17. package/dist/core/config/schemas/index.js +9 -0
  18. package/dist/core/config/schemas/refined.d.ts +3 -0
  19. package/dist/core/config/schemas/refined.js +148 -0
  20. package/dist/core/config/schemas/relative.d.ts +1462 -0
  21. package/dist/core/config/schemas/relative.js +93 -0
  22. package/dist/core/config/validate.d.ts +6 -0
  23. package/dist/core/config/validate.js +9 -3
  24. package/dist/core/constants.js +1 -1
  25. package/dist/core/dev/dev.js +1 -1
  26. package/dist/core/errors/errors-data.d.ts +1 -1
  27. package/dist/core/errors/errors-data.js +1 -1
  28. package/dist/core/messages.js +2 -2
  29. package/dist/core/render-context.js +5 -2
  30. package/dist/core/session.d.ts +8 -0
  31. package/dist/core/session.js +13 -0
  32. package/dist/events/session.js +1 -1
  33. package/dist/i18n/index.d.ts +1 -0
  34. package/dist/i18n/index.js +12 -0
  35. package/dist/i18n/utils.js +7 -11
  36. package/dist/integrations/hooks.d.ts +4 -4
  37. package/dist/integrations/hooks.js +273 -280
  38. package/dist/prefetch/index.d.ts +8 -0
  39. package/dist/prefetch/index.js +6 -4
  40. package/dist/types/public/config.d.ts +3 -25
  41. package/dist/types/public/context.d.ts +1 -1
  42. package/package.json +11 -11
  43. package/dist/core/config/schema.d.ts +0 -3402
@@ -0,0 +1,1110 @@
1
+ import type { OutgoingHttpHeaders } from 'node:http';
2
+ import type { ShikiConfig, RehypePlugin as _RehypePlugin, RemarkPlugin as _RemarkPlugin, RemarkRehype as _RemarkRehype } from '@astrojs/markdown-remark';
3
+ import { z } from 'zod';
4
+ import type { ViteUserConfig } from '../../../types/public/config.js';
5
+ export interface ComplexifyUnionObj {
6
+ }
7
+ type ComplexifyWithUnion<T> = T & ComplexifyUnionObj;
8
+ type ComplexifyWithOmit<T> = Omit<T, '__nonExistent'>;
9
+ type ShikiLang = ComplexifyWithUnion<NonNullable<ShikiConfig['langs']>[number]>;
10
+ type ShikiTheme = ComplexifyWithUnion<NonNullable<ShikiConfig['theme']>>;
11
+ type ShikiTransformer = ComplexifyWithUnion<NonNullable<ShikiConfig['transformers']>[number]>;
12
+ type RehypePlugin = ComplexifyWithUnion<_RehypePlugin>;
13
+ type RemarkPlugin = ComplexifyWithUnion<_RemarkPlugin>;
14
+ export type RemarkRehype = ComplexifyWithOmit<_RemarkRehype>;
15
+ export declare const ASTRO_CONFIG_DEFAULTS: {
16
+ root: string;
17
+ srcDir: string;
18
+ publicDir: string;
19
+ outDir: string;
20
+ cacheDir: string;
21
+ base: string;
22
+ trailingSlash: "ignore";
23
+ build: {
24
+ format: "directory";
25
+ client: string;
26
+ server: string;
27
+ assets: string;
28
+ serverEntry: string;
29
+ redirects: true;
30
+ inlineStylesheets: "auto";
31
+ concurrency: number;
32
+ };
33
+ image: {
34
+ endpoint: {
35
+ entrypoint: undefined;
36
+ route: "/_image";
37
+ };
38
+ service: {
39
+ entrypoint: "astro/assets/services/sharp";
40
+ config: {};
41
+ };
42
+ };
43
+ devToolbar: {
44
+ enabled: true;
45
+ };
46
+ compressHTML: true;
47
+ server: {
48
+ host: false;
49
+ port: number;
50
+ open: false;
51
+ allowedHosts: never[];
52
+ };
53
+ integrations: never[];
54
+ markdown: Required<import("@astrojs/markdown-remark").AstroMarkdownOptions>;
55
+ vite: {};
56
+ legacy: {
57
+ collections: false;
58
+ };
59
+ redirects: {};
60
+ security: {
61
+ checkOrigin: true;
62
+ };
63
+ env: {
64
+ schema: {};
65
+ validateSecrets: false;
66
+ };
67
+ session: undefined;
68
+ experimental: {
69
+ clientPrerender: false;
70
+ contentIntellisense: false;
71
+ responsiveImages: false;
72
+ svg: false;
73
+ serializeConfig: false;
74
+ session: false;
75
+ headingIdCompat: false;
76
+ preserveScriptOrder: false;
77
+ };
78
+ };
79
+ export declare const AstroConfigSchema: z.ZodObject<{
80
+ root: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>;
81
+ srcDir: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>;
82
+ publicDir: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>;
83
+ outDir: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>;
84
+ cacheDir: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>;
85
+ site: z.ZodOptional<z.ZodString>;
86
+ compressHTML: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
87
+ base: z.ZodDefault<z.ZodOptional<z.ZodString>>;
88
+ trailingSlash: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"always">, z.ZodLiteral<"never">, z.ZodLiteral<"ignore">]>>>;
89
+ output: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"static">, z.ZodLiteral<"server">]>>>;
90
+ scopedStyleStrategy: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"where">, z.ZodLiteral<"class">, z.ZodLiteral<"attribute">]>>>;
91
+ adapter: z.ZodOptional<z.ZodObject<{
92
+ name: z.ZodString;
93
+ hooks: z.ZodDefault<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ name: string;
96
+ hooks: {} & {
97
+ [k: string]: unknown;
98
+ };
99
+ }, {
100
+ name: string;
101
+ hooks?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
102
+ }>>;
103
+ integrations: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
104
+ name: z.ZodString;
105
+ hooks: z.ZodDefault<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ name: string;
108
+ hooks: {} & {
109
+ [k: string]: unknown;
110
+ };
111
+ }, {
112
+ name: string;
113
+ hooks?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
114
+ }>, "many">>, {
115
+ name: string;
116
+ hooks: {} & {
117
+ [k: string]: unknown;
118
+ };
119
+ }[], unknown>;
120
+ build: z.ZodDefault<z.ZodObject<{
121
+ format: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"file">, z.ZodLiteral<"directory">, z.ZodLiteral<"preserve">]>>>;
122
+ client: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>;
123
+ server: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>;
124
+ assets: z.ZodDefault<z.ZodOptional<z.ZodString>>;
125
+ assetsPrefix: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodOptional<z.ZodIntersection<z.ZodObject<{
126
+ fallback: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ fallback: string;
129
+ }, {
130
+ fallback: string;
131
+ }>, z.ZodRecord<z.ZodString, z.ZodString>>>]>;
132
+ serverEntry: z.ZodDefault<z.ZodOptional<z.ZodString>>;
133
+ redirects: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
134
+ inlineStylesheets: z.ZodDefault<z.ZodOptional<z.ZodEnum<["always", "auto", "never"]>>>;
135
+ concurrency: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ client: URL;
138
+ format: "file" | "directory" | "preserve";
139
+ server: URL;
140
+ assets: string;
141
+ serverEntry: string;
142
+ redirects: boolean;
143
+ inlineStylesheets: "never" | "always" | "auto";
144
+ concurrency: number;
145
+ assetsPrefix?: string | ({
146
+ fallback: string;
147
+ } & Record<string, string>) | undefined;
148
+ }, {
149
+ client?: string | undefined;
150
+ format?: "file" | "directory" | "preserve" | undefined;
151
+ server?: string | undefined;
152
+ assets?: string | undefined;
153
+ serverEntry?: string | undefined;
154
+ redirects?: boolean | undefined;
155
+ inlineStylesheets?: "never" | "always" | "auto" | undefined;
156
+ concurrency?: number | undefined;
157
+ assetsPrefix?: string | ({
158
+ fallback: string;
159
+ } & Record<string, string>) | undefined;
160
+ }>>;
161
+ server: z.ZodEffects<z.ZodDefault<z.ZodObject<{
162
+ open: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
163
+ host: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
164
+ port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
165
+ headers: z.ZodOptional<z.ZodType<OutgoingHttpHeaders, z.ZodTypeDef, OutgoingHttpHeaders>>;
166
+ allowedHosts: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<true>]>>>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ host: string | boolean;
169
+ port: number;
170
+ allowedHosts: true | string[];
171
+ open: string | boolean;
172
+ headers?: OutgoingHttpHeaders | undefined;
173
+ }, {
174
+ headers?: OutgoingHttpHeaders | undefined;
175
+ host?: string | boolean | undefined;
176
+ port?: number | undefined;
177
+ allowedHosts?: true | string[] | undefined;
178
+ open?: string | boolean | undefined;
179
+ }>>, {
180
+ host: string | boolean;
181
+ port: number;
182
+ allowedHosts: true | string[];
183
+ open: string | boolean;
184
+ headers?: OutgoingHttpHeaders | undefined;
185
+ }, unknown>;
186
+ redirects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
187
+ status: z.ZodUnion<[z.ZodLiteral<300>, z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<304>, z.ZodLiteral<307>, z.ZodLiteral<308>]>;
188
+ destination: z.ZodString;
189
+ }, "strip", z.ZodTypeAny, {
190
+ status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
191
+ destination: string;
192
+ }, {
193
+ status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
194
+ destination: string;
195
+ }>]>>>;
196
+ prefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
197
+ prefetchAll: z.ZodOptional<z.ZodBoolean>;
198
+ defaultStrategy: z.ZodOptional<z.ZodEnum<["tap", "hover", "viewport", "load"]>>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ prefetchAll?: boolean | undefined;
201
+ defaultStrategy?: "load" | "tap" | "hover" | "viewport" | undefined;
202
+ }, {
203
+ prefetchAll?: boolean | undefined;
204
+ defaultStrategy?: "load" | "tap" | "hover" | "viewport" | undefined;
205
+ }>]>>;
206
+ image: z.ZodDefault<z.ZodObject<{
207
+ endpoint: z.ZodDefault<z.ZodObject<{
208
+ route: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"/_image">, z.ZodString]>>;
209
+ entrypoint: z.ZodOptional<z.ZodString>;
210
+ }, "strip", z.ZodTypeAny, {
211
+ route: string;
212
+ entrypoint?: string | undefined;
213
+ }, {
214
+ route?: string | undefined;
215
+ entrypoint?: string | undefined;
216
+ }>>;
217
+ service: z.ZodDefault<z.ZodObject<{
218
+ entrypoint: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"astro/assets/services/sharp">, z.ZodString]>>;
219
+ config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ entrypoint: string;
222
+ config: Record<string, any>;
223
+ }, {
224
+ entrypoint?: string | undefined;
225
+ config?: Record<string, any> | undefined;
226
+ }>>;
227
+ domains: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
228
+ remotePatterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
229
+ protocol: z.ZodOptional<z.ZodString>;
230
+ hostname: z.ZodOptional<z.ZodString>;
231
+ port: z.ZodOptional<z.ZodString>;
232
+ pathname: z.ZodOptional<z.ZodString>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ port?: string | undefined;
235
+ protocol?: string | undefined;
236
+ hostname?: string | undefined;
237
+ pathname?: string | undefined;
238
+ }, {
239
+ port?: string | undefined;
240
+ protocol?: string | undefined;
241
+ hostname?: string | undefined;
242
+ pathname?: string | undefined;
243
+ }>, "many">>;
244
+ experimentalLayout: z.ZodOptional<z.ZodEnum<["responsive", "fixed", "full-width", "none"]>>;
245
+ experimentalObjectFit: z.ZodOptional<z.ZodString>;
246
+ experimentalObjectPosition: z.ZodOptional<z.ZodString>;
247
+ experimentalBreakpoints: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ endpoint: {
250
+ route: string;
251
+ entrypoint?: string | undefined;
252
+ };
253
+ service: {
254
+ entrypoint: string;
255
+ config: Record<string, any>;
256
+ };
257
+ domains: string[];
258
+ remotePatterns: {
259
+ port?: string | undefined;
260
+ protocol?: string | undefined;
261
+ hostname?: string | undefined;
262
+ pathname?: string | undefined;
263
+ }[];
264
+ experimentalLayout?: "fixed" | "none" | "responsive" | "full-width" | undefined;
265
+ experimentalObjectFit?: string | undefined;
266
+ experimentalObjectPosition?: string | undefined;
267
+ experimentalBreakpoints?: number[] | undefined;
268
+ }, {
269
+ endpoint?: {
270
+ route?: string | undefined;
271
+ entrypoint?: string | undefined;
272
+ } | undefined;
273
+ service?: {
274
+ entrypoint?: string | undefined;
275
+ config?: Record<string, any> | undefined;
276
+ } | undefined;
277
+ domains?: string[] | undefined;
278
+ remotePatterns?: {
279
+ port?: string | undefined;
280
+ protocol?: string | undefined;
281
+ hostname?: string | undefined;
282
+ pathname?: string | undefined;
283
+ }[] | undefined;
284
+ experimentalLayout?: "fixed" | "none" | "responsive" | "full-width" | undefined;
285
+ experimentalObjectFit?: string | undefined;
286
+ experimentalObjectPosition?: string | undefined;
287
+ experimentalBreakpoints?: number[] | undefined;
288
+ }>>;
289
+ devToolbar: z.ZodDefault<z.ZodObject<{
290
+ enabled: z.ZodDefault<z.ZodBoolean>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ enabled: boolean;
293
+ }, {
294
+ enabled?: boolean | undefined;
295
+ }>>;
296
+ markdown: z.ZodDefault<z.ZodObject<{
297
+ syntaxHighlight: z.ZodDefault<z.ZodUnion<[z.ZodDefault<z.ZodObject<{
298
+ type: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"shiki">, z.ZodLiteral<"prism">]>>;
299
+ excludeLangs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ type: "shiki" | "prism";
302
+ excludeLangs: string[];
303
+ }, {
304
+ type?: "shiki" | "prism" | undefined;
305
+ excludeLangs?: string[] | undefined;
306
+ }>>, z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"shiki">, z.ZodLiteral<"prism">]>>, z.ZodLiteral<false>]>>;
307
+ shikiConfig: z.ZodDefault<z.ZodObject<{
308
+ langs: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodType<ShikiLang, z.ZodTypeDef, ShikiLang>, "many">, ShikiLang[], ShikiLang[]>>;
309
+ langAlias: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
310
+ theme: z.ZodDefault<z.ZodUnion<[z.ZodEnum<[import("shiki").BundledTheme, ...import("shiki").BundledTheme[]]>, z.ZodType<ShikiTheme, z.ZodTypeDef, ShikiTheme>]>>;
311
+ themes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEnum<[import("shiki").BundledTheme, ...import("shiki").BundledTheme[]]>, z.ZodType<ShikiTheme, z.ZodTypeDef, ShikiTheme>]>>>;
312
+ defaultColor: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"light">, z.ZodLiteral<"dark">, z.ZodString, z.ZodLiteral<false>]>>;
313
+ wrap: z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
314
+ transformers: z.ZodDefault<z.ZodArray<z.ZodType<ShikiTransformer, z.ZodTypeDef, ShikiTransformer>, "many">>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ langs: ShikiLang[];
317
+ theme: import("shiki").BundledTheme | ShikiTheme;
318
+ themes: Record<string, import("shiki").BundledTheme | ShikiTheme>;
319
+ langAlias: Record<string, string>;
320
+ wrap: boolean | null;
321
+ transformers: ShikiTransformer[];
322
+ defaultColor?: string | false | undefined;
323
+ }, {
324
+ langs?: ShikiLang[] | undefined;
325
+ theme?: import("shiki").BundledTheme | ShikiTheme | undefined;
326
+ themes?: Record<string, import("shiki").BundledTheme | ShikiTheme> | undefined;
327
+ langAlias?: Record<string, string> | undefined;
328
+ defaultColor?: string | false | undefined;
329
+ wrap?: boolean | null | undefined;
330
+ transformers?: ShikiTransformer[] | undefined;
331
+ }>>;
332
+ remarkPlugins: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodAny], null>, z.ZodType<RemarkPlugin, z.ZodTypeDef, RemarkPlugin>, z.ZodTuple<[z.ZodType<RemarkPlugin, z.ZodTypeDef, RemarkPlugin>, z.ZodAny], null>]>, "many">>;
333
+ rehypePlugins: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodAny], null>, z.ZodType<RehypePlugin, z.ZodTypeDef, RehypePlugin>, z.ZodTuple<[z.ZodType<RehypePlugin, z.ZodTypeDef, RehypePlugin>, z.ZodAny], null>]>, "many">>;
334
+ remarkRehype: z.ZodDefault<z.ZodType<RemarkRehype, z.ZodTypeDef, RemarkRehype>>;
335
+ gfm: z.ZodDefault<z.ZodBoolean>;
336
+ smartypants: z.ZodDefault<z.ZodBoolean>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ syntaxHighlight: false | "shiki" | "prism" | {
339
+ type: "shiki" | "prism";
340
+ excludeLangs: string[];
341
+ };
342
+ shikiConfig: {
343
+ langs: ShikiLang[];
344
+ theme: import("shiki").BundledTheme | ShikiTheme;
345
+ themes: Record<string, import("shiki").BundledTheme | ShikiTheme>;
346
+ langAlias: Record<string, string>;
347
+ wrap: boolean | null;
348
+ transformers: ShikiTransformer[];
349
+ defaultColor?: string | false | undefined;
350
+ };
351
+ remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[];
352
+ rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];
353
+ remarkRehype: RemarkRehype;
354
+ gfm: boolean;
355
+ smartypants: boolean;
356
+ }, {
357
+ syntaxHighlight?: false | "shiki" | "prism" | {
358
+ type?: "shiki" | "prism" | undefined;
359
+ excludeLangs?: string[] | undefined;
360
+ } | undefined;
361
+ shikiConfig?: {
362
+ langs?: ShikiLang[] | undefined;
363
+ theme?: import("shiki").BundledTheme | ShikiTheme | undefined;
364
+ themes?: Record<string, import("shiki").BundledTheme | ShikiTheme> | undefined;
365
+ langAlias?: Record<string, string> | undefined;
366
+ defaultColor?: string | false | undefined;
367
+ wrap?: boolean | null | undefined;
368
+ transformers?: ShikiTransformer[] | undefined;
369
+ } | undefined;
370
+ remarkPlugins?: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[] | undefined;
371
+ rehypePlugins?: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[] | undefined;
372
+ remarkRehype?: RemarkRehype | undefined;
373
+ gfm?: boolean | undefined;
374
+ smartypants?: boolean | undefined;
375
+ }>>;
376
+ vite: z.ZodDefault<z.ZodType<ViteUserConfig, z.ZodTypeDef, ViteUserConfig>>;
377
+ i18n: z.ZodOptional<z.ZodOptional<z.ZodObject<{
378
+ defaultLocale: z.ZodString;
379
+ locales: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
380
+ path: z.ZodString;
381
+ codes: z.ZodArray<z.ZodString, "atleastone">;
382
+ }, "strip", z.ZodTypeAny, {
383
+ path: string;
384
+ codes: [string, ...string[]];
385
+ }, {
386
+ path: string;
387
+ codes: [string, ...string[]];
388
+ }>]>, "many">;
389
+ domains: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
390
+ fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
391
+ routing: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"manual">, z.ZodObject<{
392
+ prefixDefaultLocale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
393
+ redirectToDefaultLocale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
394
+ fallbackType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["redirect", "rewrite"]>>>;
395
+ }, "strip", z.ZodTypeAny, {
396
+ prefixDefaultLocale: boolean;
397
+ redirectToDefaultLocale: boolean;
398
+ fallbackType: "redirect" | "rewrite";
399
+ }, {
400
+ prefixDefaultLocale?: boolean | undefined;
401
+ redirectToDefaultLocale?: boolean | undefined;
402
+ fallbackType?: "redirect" | "rewrite" | undefined;
403
+ }>]>>>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ defaultLocale: string;
406
+ locales: (string | {
407
+ path: string;
408
+ codes: [string, ...string[]];
409
+ })[];
410
+ routing: "manual" | {
411
+ prefixDefaultLocale: boolean;
412
+ redirectToDefaultLocale: boolean;
413
+ fallbackType: "redirect" | "rewrite";
414
+ };
415
+ fallback?: Record<string, string> | undefined;
416
+ domains?: Record<string, string> | undefined;
417
+ }, {
418
+ defaultLocale: string;
419
+ locales: (string | {
420
+ path: string;
421
+ codes: [string, ...string[]];
422
+ })[];
423
+ fallback?: Record<string, string> | undefined;
424
+ domains?: Record<string, string> | undefined;
425
+ routing?: "manual" | {
426
+ prefixDefaultLocale?: boolean | undefined;
427
+ redirectToDefaultLocale?: boolean | undefined;
428
+ fallbackType?: "redirect" | "rewrite" | undefined;
429
+ } | undefined;
430
+ }>>>;
431
+ security: z.ZodDefault<z.ZodOptional<z.ZodObject<{
432
+ checkOrigin: z.ZodDefault<z.ZodBoolean>;
433
+ }, "strip", z.ZodTypeAny, {
434
+ checkOrigin: boolean;
435
+ }, {
436
+ checkOrigin?: boolean | undefined;
437
+ }>>>;
438
+ env: z.ZodDefault<z.ZodOptional<z.ZodObject<{
439
+ schema: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodIntersection<z.ZodEffects<z.ZodType<{
440
+ context: "client";
441
+ access: "public";
442
+ } | {
443
+ context: "server";
444
+ access: "public";
445
+ } | {
446
+ context: "server";
447
+ access: "secret";
448
+ }, z.ZodTypeDef, {
449
+ context: "client";
450
+ access: "public";
451
+ } | {
452
+ context: "server";
453
+ access: "public";
454
+ } | {
455
+ context: "server";
456
+ access: "secret";
457
+ }>, {
458
+ context: "client";
459
+ access: "public";
460
+ } | {
461
+ context: "server";
462
+ access: "public";
463
+ } | {
464
+ context: "server";
465
+ access: "secret";
466
+ }, {
467
+ context: "client";
468
+ access: "public";
469
+ } | {
470
+ context: "server";
471
+ access: "public";
472
+ } | {
473
+ context: "server";
474
+ access: "secret";
475
+ }>, z.ZodUnion<[z.ZodObject<{
476
+ type: z.ZodLiteral<"string">;
477
+ optional: z.ZodOptional<z.ZodBoolean>;
478
+ default: z.ZodOptional<z.ZodString>;
479
+ max: z.ZodOptional<z.ZodNumber>;
480
+ min: z.ZodOptional<z.ZodNumber>;
481
+ length: z.ZodOptional<z.ZodNumber>;
482
+ url: z.ZodOptional<z.ZodBoolean>;
483
+ includes: z.ZodOptional<z.ZodString>;
484
+ startsWith: z.ZodOptional<z.ZodString>;
485
+ endsWith: z.ZodOptional<z.ZodString>;
486
+ }, "strip", z.ZodTypeAny, {
487
+ type: "string";
488
+ length?: number | undefined;
489
+ includes?: string | undefined;
490
+ endsWith?: string | undefined;
491
+ startsWith?: string | undefined;
492
+ default?: string | undefined;
493
+ url?: boolean | undefined;
494
+ optional?: boolean | undefined;
495
+ max?: number | undefined;
496
+ min?: number | undefined;
497
+ }, {
498
+ type: "string";
499
+ length?: number | undefined;
500
+ includes?: string | undefined;
501
+ endsWith?: string | undefined;
502
+ startsWith?: string | undefined;
503
+ default?: string | undefined;
504
+ url?: boolean | undefined;
505
+ optional?: boolean | undefined;
506
+ max?: number | undefined;
507
+ min?: number | undefined;
508
+ }>, z.ZodObject<{
509
+ type: z.ZodLiteral<"number">;
510
+ optional: z.ZodOptional<z.ZodBoolean>;
511
+ default: z.ZodOptional<z.ZodNumber>;
512
+ gt: z.ZodOptional<z.ZodNumber>;
513
+ min: z.ZodOptional<z.ZodNumber>;
514
+ lt: z.ZodOptional<z.ZodNumber>;
515
+ max: z.ZodOptional<z.ZodNumber>;
516
+ int: z.ZodOptional<z.ZodBoolean>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ type: "number";
519
+ default?: number | undefined;
520
+ optional?: boolean | undefined;
521
+ max?: number | undefined;
522
+ min?: number | undefined;
523
+ gt?: number | undefined;
524
+ lt?: number | undefined;
525
+ int?: boolean | undefined;
526
+ }, {
527
+ type: "number";
528
+ default?: number | undefined;
529
+ optional?: boolean | undefined;
530
+ max?: number | undefined;
531
+ min?: number | undefined;
532
+ gt?: number | undefined;
533
+ lt?: number | undefined;
534
+ int?: boolean | undefined;
535
+ }>, z.ZodObject<{
536
+ type: z.ZodLiteral<"boolean">;
537
+ optional: z.ZodOptional<z.ZodBoolean>;
538
+ default: z.ZodOptional<z.ZodBoolean>;
539
+ }, "strip", z.ZodTypeAny, {
540
+ type: "boolean";
541
+ default?: boolean | undefined;
542
+ optional?: boolean | undefined;
543
+ }, {
544
+ type: "boolean";
545
+ default?: boolean | undefined;
546
+ optional?: boolean | undefined;
547
+ }>, z.ZodEffects<z.ZodObject<{
548
+ type: z.ZodLiteral<"enum">;
549
+ values: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
550
+ optional: z.ZodOptional<z.ZodBoolean>;
551
+ default: z.ZodOptional<z.ZodString>;
552
+ }, "strip", z.ZodTypeAny, {
553
+ values: string[];
554
+ type: "enum";
555
+ default?: string | undefined;
556
+ optional?: boolean | undefined;
557
+ }, {
558
+ values: string[];
559
+ type: "enum";
560
+ default?: string | undefined;
561
+ optional?: boolean | undefined;
562
+ }>, {
563
+ values: string[];
564
+ type: "enum";
565
+ default?: string | undefined;
566
+ optional?: boolean | undefined;
567
+ }, {
568
+ values: string[];
569
+ type: "enum";
570
+ default?: string | undefined;
571
+ optional?: boolean | undefined;
572
+ }>]>>>>>;
573
+ validateSecrets: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
574
+ }, "strict", z.ZodTypeAny, {
575
+ validateSecrets: boolean;
576
+ schema: Record<string, ({
577
+ context: "client";
578
+ access: "public";
579
+ } | {
580
+ context: "server";
581
+ access: "public";
582
+ } | {
583
+ context: "server";
584
+ access: "secret";
585
+ }) & ({
586
+ type: "string";
587
+ length?: number | undefined;
588
+ includes?: string | undefined;
589
+ endsWith?: string | undefined;
590
+ startsWith?: string | undefined;
591
+ default?: string | undefined;
592
+ url?: boolean | undefined;
593
+ optional?: boolean | undefined;
594
+ max?: number | undefined;
595
+ min?: number | undefined;
596
+ } | {
597
+ type: "number";
598
+ default?: number | undefined;
599
+ optional?: boolean | undefined;
600
+ max?: number | undefined;
601
+ min?: number | undefined;
602
+ gt?: number | undefined;
603
+ lt?: number | undefined;
604
+ int?: boolean | undefined;
605
+ } | {
606
+ type: "boolean";
607
+ default?: boolean | undefined;
608
+ optional?: boolean | undefined;
609
+ } | {
610
+ values: string[];
611
+ type: "enum";
612
+ default?: string | undefined;
613
+ optional?: boolean | undefined;
614
+ })>;
615
+ }, {
616
+ validateSecrets?: boolean | undefined;
617
+ schema?: Record<string, ({
618
+ context: "client";
619
+ access: "public";
620
+ } | {
621
+ context: "server";
622
+ access: "public";
623
+ } | {
624
+ context: "server";
625
+ access: "secret";
626
+ }) & ({
627
+ type: "string";
628
+ length?: number | undefined;
629
+ includes?: string | undefined;
630
+ endsWith?: string | undefined;
631
+ startsWith?: string | undefined;
632
+ default?: string | undefined;
633
+ url?: boolean | undefined;
634
+ optional?: boolean | undefined;
635
+ max?: number | undefined;
636
+ min?: number | undefined;
637
+ } | {
638
+ type: "number";
639
+ default?: number | undefined;
640
+ optional?: boolean | undefined;
641
+ max?: number | undefined;
642
+ min?: number | undefined;
643
+ gt?: number | undefined;
644
+ lt?: number | undefined;
645
+ int?: boolean | undefined;
646
+ } | {
647
+ type: "boolean";
648
+ default?: boolean | undefined;
649
+ optional?: boolean | undefined;
650
+ } | {
651
+ values: string[];
652
+ type: "enum";
653
+ default?: string | undefined;
654
+ optional?: boolean | undefined;
655
+ })> | undefined;
656
+ }>>>;
657
+ session: z.ZodOptional<z.ZodObject<{
658
+ driver: z.ZodString;
659
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
660
+ cookie: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
661
+ name: z.ZodOptional<z.ZodString>;
662
+ domain: z.ZodOptional<z.ZodString>;
663
+ path: z.ZodOptional<z.ZodString>;
664
+ maxAge: z.ZodOptional<z.ZodNumber>;
665
+ sameSite: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["strict", "lax", "none"]>, z.ZodBoolean]>>;
666
+ secure: z.ZodOptional<z.ZodBoolean>;
667
+ }, "strip", z.ZodTypeAny, {
668
+ domain?: string | undefined;
669
+ path?: string | undefined;
670
+ maxAge?: number | undefined;
671
+ sameSite?: boolean | "lax" | "strict" | "none" | undefined;
672
+ secure?: boolean | undefined;
673
+ name?: string | undefined;
674
+ }, {
675
+ domain?: string | undefined;
676
+ path?: string | undefined;
677
+ maxAge?: number | undefined;
678
+ sameSite?: boolean | "lax" | "strict" | "none" | undefined;
679
+ secure?: boolean | undefined;
680
+ name?: string | undefined;
681
+ }>, z.ZodString]>, {
682
+ domain?: string | undefined;
683
+ path?: string | undefined;
684
+ maxAge?: number | undefined;
685
+ sameSite?: boolean | "lax" | "strict" | "none" | undefined;
686
+ secure?: boolean | undefined;
687
+ name?: string | undefined;
688
+ }, string | {
689
+ domain?: string | undefined;
690
+ path?: string | undefined;
691
+ maxAge?: number | undefined;
692
+ sameSite?: boolean | "lax" | "strict" | "none" | undefined;
693
+ secure?: boolean | undefined;
694
+ name?: string | undefined;
695
+ }>>;
696
+ ttl: z.ZodOptional<z.ZodNumber>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ driver: string;
699
+ cookie?: {
700
+ domain?: string | undefined;
701
+ path?: string | undefined;
702
+ maxAge?: number | undefined;
703
+ sameSite?: boolean | "lax" | "strict" | "none" | undefined;
704
+ secure?: boolean | undefined;
705
+ name?: string | undefined;
706
+ } | undefined;
707
+ options?: Record<string, any> | undefined;
708
+ ttl?: number | undefined;
709
+ }, {
710
+ driver: string;
711
+ cookie?: string | {
712
+ domain?: string | undefined;
713
+ path?: string | undefined;
714
+ maxAge?: number | undefined;
715
+ sameSite?: boolean | "lax" | "strict" | "none" | undefined;
716
+ secure?: boolean | undefined;
717
+ name?: string | undefined;
718
+ } | undefined;
719
+ options?: Record<string, any> | undefined;
720
+ ttl?: number | undefined;
721
+ }>>;
722
+ experimental: z.ZodDefault<z.ZodObject<{
723
+ clientPrerender: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
724
+ contentIntellisense: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
725
+ responsiveImages: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
726
+ session: z.ZodOptional<z.ZodBoolean>;
727
+ svg: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
728
+ serializeConfig: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
729
+ headingIdCompat: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
730
+ preserveScriptOrder: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
731
+ }, "strict", z.ZodTypeAny, {
732
+ clientPrerender: boolean;
733
+ contentIntellisense: boolean;
734
+ responsiveImages: boolean;
735
+ svg: boolean;
736
+ serializeConfig: boolean;
737
+ headingIdCompat: boolean;
738
+ preserveScriptOrder: boolean;
739
+ session?: boolean | undefined;
740
+ }, {
741
+ clientPrerender?: boolean | undefined;
742
+ contentIntellisense?: boolean | undefined;
743
+ responsiveImages?: boolean | undefined;
744
+ svg?: boolean | undefined;
745
+ serializeConfig?: boolean | undefined;
746
+ session?: boolean | undefined;
747
+ headingIdCompat?: boolean | undefined;
748
+ preserveScriptOrder?: boolean | undefined;
749
+ }>>;
750
+ legacy: z.ZodDefault<z.ZodObject<{
751
+ collections: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
752
+ }, "strip", z.ZodTypeAny, {
753
+ collections: boolean;
754
+ }, {
755
+ collections?: boolean | undefined;
756
+ }>>;
757
+ }, "strip", z.ZodTypeAny, {
758
+ trailingSlash: "never" | "ignore" | "always";
759
+ server: {
760
+ host: string | boolean;
761
+ port: number;
762
+ allowedHosts: true | string[];
763
+ open: string | boolean;
764
+ headers?: OutgoingHttpHeaders | undefined;
765
+ };
766
+ redirects: Record<string, string | {
767
+ status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
768
+ destination: string;
769
+ }>;
770
+ build: {
771
+ client: URL;
772
+ format: "file" | "directory" | "preserve";
773
+ server: URL;
774
+ assets: string;
775
+ serverEntry: string;
776
+ redirects: boolean;
777
+ inlineStylesheets: "never" | "always" | "auto";
778
+ concurrency: number;
779
+ assetsPrefix?: string | ({
780
+ fallback: string;
781
+ } & Record<string, string>) | undefined;
782
+ };
783
+ root: URL;
784
+ srcDir: URL;
785
+ publicDir: URL;
786
+ outDir: URL;
787
+ cacheDir: URL;
788
+ compressHTML: boolean;
789
+ base: string;
790
+ output: "server" | "static";
791
+ scopedStyleStrategy: "where" | "class" | "attribute";
792
+ integrations: {
793
+ name: string;
794
+ hooks: {} & {
795
+ [k: string]: unknown;
796
+ };
797
+ }[];
798
+ image: {
799
+ endpoint: {
800
+ route: string;
801
+ entrypoint?: string | undefined;
802
+ };
803
+ service: {
804
+ entrypoint: string;
805
+ config: Record<string, any>;
806
+ };
807
+ domains: string[];
808
+ remotePatterns: {
809
+ port?: string | undefined;
810
+ protocol?: string | undefined;
811
+ hostname?: string | undefined;
812
+ pathname?: string | undefined;
813
+ }[];
814
+ experimentalLayout?: "fixed" | "none" | "responsive" | "full-width" | undefined;
815
+ experimentalObjectFit?: string | undefined;
816
+ experimentalObjectPosition?: string | undefined;
817
+ experimentalBreakpoints?: number[] | undefined;
818
+ };
819
+ devToolbar: {
820
+ enabled: boolean;
821
+ };
822
+ markdown: {
823
+ syntaxHighlight: false | "shiki" | "prism" | {
824
+ type: "shiki" | "prism";
825
+ excludeLangs: string[];
826
+ };
827
+ shikiConfig: {
828
+ langs: ShikiLang[];
829
+ theme: import("shiki").BundledTheme | ShikiTheme;
830
+ themes: Record<string, import("shiki").BundledTheme | ShikiTheme>;
831
+ langAlias: Record<string, string>;
832
+ wrap: boolean | null;
833
+ transformers: ShikiTransformer[];
834
+ defaultColor?: string | false | undefined;
835
+ };
836
+ remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[];
837
+ rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];
838
+ remarkRehype: RemarkRehype;
839
+ gfm: boolean;
840
+ smartypants: boolean;
841
+ };
842
+ vite: ViteUserConfig;
843
+ security: {
844
+ checkOrigin: boolean;
845
+ };
846
+ env: {
847
+ validateSecrets: boolean;
848
+ schema: Record<string, ({
849
+ context: "client";
850
+ access: "public";
851
+ } | {
852
+ context: "server";
853
+ access: "public";
854
+ } | {
855
+ context: "server";
856
+ access: "secret";
857
+ }) & ({
858
+ type: "string";
859
+ length?: number | undefined;
860
+ includes?: string | undefined;
861
+ endsWith?: string | undefined;
862
+ startsWith?: string | undefined;
863
+ default?: string | undefined;
864
+ url?: boolean | undefined;
865
+ optional?: boolean | undefined;
866
+ max?: number | undefined;
867
+ min?: number | undefined;
868
+ } | {
869
+ type: "number";
870
+ default?: number | undefined;
871
+ optional?: boolean | undefined;
872
+ max?: number | undefined;
873
+ min?: number | undefined;
874
+ gt?: number | undefined;
875
+ lt?: number | undefined;
876
+ int?: boolean | undefined;
877
+ } | {
878
+ type: "boolean";
879
+ default?: boolean | undefined;
880
+ optional?: boolean | undefined;
881
+ } | {
882
+ values: string[];
883
+ type: "enum";
884
+ default?: string | undefined;
885
+ optional?: boolean | undefined;
886
+ })>;
887
+ };
888
+ experimental: {
889
+ clientPrerender: boolean;
890
+ contentIntellisense: boolean;
891
+ responsiveImages: boolean;
892
+ svg: boolean;
893
+ serializeConfig: boolean;
894
+ headingIdCompat: boolean;
895
+ preserveScriptOrder: boolean;
896
+ session?: boolean | undefined;
897
+ };
898
+ legacy: {
899
+ collections: boolean;
900
+ };
901
+ session?: {
902
+ driver: string;
903
+ cookie?: {
904
+ domain?: string | undefined;
905
+ path?: string | undefined;
906
+ maxAge?: number | undefined;
907
+ sameSite?: boolean | "lax" | "strict" | "none" | undefined;
908
+ secure?: boolean | undefined;
909
+ name?: string | undefined;
910
+ } | undefined;
911
+ options?: Record<string, any> | undefined;
912
+ ttl?: number | undefined;
913
+ } | undefined;
914
+ site?: string | undefined;
915
+ adapter?: {
916
+ name: string;
917
+ hooks: {} & {
918
+ [k: string]: unknown;
919
+ };
920
+ } | undefined;
921
+ prefetch?: boolean | {
922
+ prefetchAll?: boolean | undefined;
923
+ defaultStrategy?: "load" | "tap" | "hover" | "viewport" | undefined;
924
+ } | undefined;
925
+ i18n?: {
926
+ defaultLocale: string;
927
+ locales: (string | {
928
+ path: string;
929
+ codes: [string, ...string[]];
930
+ })[];
931
+ routing: "manual" | {
932
+ prefixDefaultLocale: boolean;
933
+ redirectToDefaultLocale: boolean;
934
+ fallbackType: "redirect" | "rewrite";
935
+ };
936
+ fallback?: Record<string, string> | undefined;
937
+ domains?: Record<string, string> | undefined;
938
+ } | undefined;
939
+ }, {
940
+ trailingSlash?: "never" | "ignore" | "always" | undefined;
941
+ server?: unknown;
942
+ redirects?: Record<string, string | {
943
+ status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
944
+ destination: string;
945
+ }> | undefined;
946
+ session?: {
947
+ driver: string;
948
+ cookie?: string | {
949
+ domain?: string | undefined;
950
+ path?: string | undefined;
951
+ maxAge?: number | undefined;
952
+ sameSite?: boolean | "lax" | "strict" | "none" | undefined;
953
+ secure?: boolean | undefined;
954
+ name?: string | undefined;
955
+ } | undefined;
956
+ options?: Record<string, any> | undefined;
957
+ ttl?: number | undefined;
958
+ } | undefined;
959
+ build?: {
960
+ client?: string | undefined;
961
+ format?: "file" | "directory" | "preserve" | undefined;
962
+ server?: string | undefined;
963
+ assets?: string | undefined;
964
+ serverEntry?: string | undefined;
965
+ redirects?: boolean | undefined;
966
+ inlineStylesheets?: "never" | "always" | "auto" | undefined;
967
+ concurrency?: number | undefined;
968
+ assetsPrefix?: string | ({
969
+ fallback: string;
970
+ } & Record<string, string>) | undefined;
971
+ } | undefined;
972
+ root?: string | undefined;
973
+ srcDir?: string | undefined;
974
+ publicDir?: string | undefined;
975
+ outDir?: string | undefined;
976
+ cacheDir?: string | undefined;
977
+ site?: string | undefined;
978
+ compressHTML?: boolean | undefined;
979
+ base?: string | undefined;
980
+ output?: "server" | "static" | undefined;
981
+ scopedStyleStrategy?: "where" | "class" | "attribute" | undefined;
982
+ adapter?: {
983
+ name: string;
984
+ hooks?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
985
+ } | undefined;
986
+ integrations?: unknown;
987
+ prefetch?: boolean | {
988
+ prefetchAll?: boolean | undefined;
989
+ defaultStrategy?: "load" | "tap" | "hover" | "viewport" | undefined;
990
+ } | undefined;
991
+ image?: {
992
+ endpoint?: {
993
+ route?: string | undefined;
994
+ entrypoint?: string | undefined;
995
+ } | undefined;
996
+ service?: {
997
+ entrypoint?: string | undefined;
998
+ config?: Record<string, any> | undefined;
999
+ } | undefined;
1000
+ domains?: string[] | undefined;
1001
+ remotePatterns?: {
1002
+ port?: string | undefined;
1003
+ protocol?: string | undefined;
1004
+ hostname?: string | undefined;
1005
+ pathname?: string | undefined;
1006
+ }[] | undefined;
1007
+ experimentalLayout?: "fixed" | "none" | "responsive" | "full-width" | undefined;
1008
+ experimentalObjectFit?: string | undefined;
1009
+ experimentalObjectPosition?: string | undefined;
1010
+ experimentalBreakpoints?: number[] | undefined;
1011
+ } | undefined;
1012
+ devToolbar?: {
1013
+ enabled?: boolean | undefined;
1014
+ } | undefined;
1015
+ markdown?: {
1016
+ syntaxHighlight?: false | "shiki" | "prism" | {
1017
+ type?: "shiki" | "prism" | undefined;
1018
+ excludeLangs?: string[] | undefined;
1019
+ } | undefined;
1020
+ shikiConfig?: {
1021
+ langs?: ShikiLang[] | undefined;
1022
+ theme?: import("shiki").BundledTheme | ShikiTheme | undefined;
1023
+ themes?: Record<string, import("shiki").BundledTheme | ShikiTheme> | undefined;
1024
+ langAlias?: Record<string, string> | undefined;
1025
+ defaultColor?: string | false | undefined;
1026
+ wrap?: boolean | null | undefined;
1027
+ transformers?: ShikiTransformer[] | undefined;
1028
+ } | undefined;
1029
+ remarkPlugins?: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[] | undefined;
1030
+ rehypePlugins?: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[] | undefined;
1031
+ remarkRehype?: RemarkRehype | undefined;
1032
+ gfm?: boolean | undefined;
1033
+ smartypants?: boolean | undefined;
1034
+ } | undefined;
1035
+ vite?: ViteUserConfig | undefined;
1036
+ i18n?: {
1037
+ defaultLocale: string;
1038
+ locales: (string | {
1039
+ path: string;
1040
+ codes: [string, ...string[]];
1041
+ })[];
1042
+ fallback?: Record<string, string> | undefined;
1043
+ domains?: Record<string, string> | undefined;
1044
+ routing?: "manual" | {
1045
+ prefixDefaultLocale?: boolean | undefined;
1046
+ redirectToDefaultLocale?: boolean | undefined;
1047
+ fallbackType?: "redirect" | "rewrite" | undefined;
1048
+ } | undefined;
1049
+ } | undefined;
1050
+ security?: {
1051
+ checkOrigin?: boolean | undefined;
1052
+ } | undefined;
1053
+ env?: {
1054
+ validateSecrets?: boolean | undefined;
1055
+ schema?: Record<string, ({
1056
+ context: "client";
1057
+ access: "public";
1058
+ } | {
1059
+ context: "server";
1060
+ access: "public";
1061
+ } | {
1062
+ context: "server";
1063
+ access: "secret";
1064
+ }) & ({
1065
+ type: "string";
1066
+ length?: number | undefined;
1067
+ includes?: string | undefined;
1068
+ endsWith?: string | undefined;
1069
+ startsWith?: string | undefined;
1070
+ default?: string | undefined;
1071
+ url?: boolean | undefined;
1072
+ optional?: boolean | undefined;
1073
+ max?: number | undefined;
1074
+ min?: number | undefined;
1075
+ } | {
1076
+ type: "number";
1077
+ default?: number | undefined;
1078
+ optional?: boolean | undefined;
1079
+ max?: number | undefined;
1080
+ min?: number | undefined;
1081
+ gt?: number | undefined;
1082
+ lt?: number | undefined;
1083
+ int?: boolean | undefined;
1084
+ } | {
1085
+ type: "boolean";
1086
+ default?: boolean | undefined;
1087
+ optional?: boolean | undefined;
1088
+ } | {
1089
+ values: string[];
1090
+ type: "enum";
1091
+ default?: string | undefined;
1092
+ optional?: boolean | undefined;
1093
+ })> | undefined;
1094
+ } | undefined;
1095
+ experimental?: {
1096
+ clientPrerender?: boolean | undefined;
1097
+ contentIntellisense?: boolean | undefined;
1098
+ responsiveImages?: boolean | undefined;
1099
+ svg?: boolean | undefined;
1100
+ serializeConfig?: boolean | undefined;
1101
+ session?: boolean | undefined;
1102
+ headingIdCompat?: boolean | undefined;
1103
+ preserveScriptOrder?: boolean | undefined;
1104
+ } | undefined;
1105
+ legacy?: {
1106
+ collections?: boolean | undefined;
1107
+ } | undefined;
1108
+ }>;
1109
+ export type AstroConfigType = z.infer<typeof AstroConfigSchema>;
1110
+ export {};