UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

1,180 lines • 62.9 kB
import type { OutgoingHttpHeaders } from 'node:http'; import type { ShikiConfig, RehypePlugin as _RehypePlugin, RemarkPlugin as _RemarkPlugin, RemarkRehype as _RemarkRehype } from '@astrojs/markdown-remark'; import { z } from 'zod'; import type { ViteUserConfig } from '../../../types/public/config.js'; /** @lintignore */ export interface ComplexifyUnionObj { } type ComplexifyWithUnion<T> = T & ComplexifyUnionObj; type ComplexifyWithOmit<T> = Omit<T, '__nonExistent'>; type ShikiLang = ComplexifyWithUnion<NonNullable<ShikiConfig['langs']>[number]>; type ShikiTheme = ComplexifyWithUnion<NonNullable<ShikiConfig['theme']>>; type ShikiTransformer = ComplexifyWithUnion<NonNullable<ShikiConfig['transformers']>[number]>; type RehypePlugin = ComplexifyWithUnion<_RehypePlugin>; type RemarkPlugin = ComplexifyWithUnion<_RemarkPlugin>; /** @lintignore */ export type RemarkRehype = ComplexifyWithOmit<_RemarkRehype>; export declare const ASTRO_CONFIG_DEFAULTS: { root: string; srcDir: string; publicDir: string; outDir: string; cacheDir: string; base: string; trailingSlash: "ignore"; build: { format: "directory"; client: string; server: string; assets: string; serverEntry: string; redirects: true; inlineStylesheets: "auto"; concurrency: number; }; image: { endpoint: { entrypoint: undefined; route: "/_image"; }; service: { entrypoint: "astro/assets/services/sharp"; config: {}; }; }; devToolbar: { enabled: true; }; compressHTML: true; server: { host: false; port: number; open: false; allowedHosts: never[]; }; integrations: never[]; markdown: Required<import("@astrojs/markdown-remark").AstroMarkdownOptions>; vite: {}; legacy: { collections: false; }; redirects: {}; security: { checkOrigin: true; }; env: { schema: {}; validateSecrets: false; }; session: undefined; experimental: { clientPrerender: false; contentIntellisense: false; responsiveImages: false; headingIdCompat: false; preserveScriptOrder: false; }; }; export declare const AstroConfigSchema: z.ZodObject<{ root: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>; srcDir: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>; publicDir: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>; outDir: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>; cacheDir: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>; site: z.ZodOptional<z.ZodString>; compressHTML: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; base: z.ZodDefault<z.ZodOptional<z.ZodString>>; trailingSlash: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"always">, z.ZodLiteral<"never">, z.ZodLiteral<"ignore">]>>>; output: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"static">, z.ZodLiteral<"server">]>>>; scopedStyleStrategy: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"where">, z.ZodLiteral<"class">, z.ZodLiteral<"attribute">]>>>; adapter: z.ZodOptional<z.ZodObject<{ name: z.ZodString; hooks: z.ZodDefault<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { name: string; hooks: {} & { [k: string]: unknown; }; }, { name: string; hooks?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>>; integrations: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodString; hooks: z.ZodDefault<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { name: string; hooks: {} & { [k: string]: unknown; }; }, { name: string; hooks?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>, "many">>, { name: string; hooks: {} & { [k: string]: unknown; }; }[], unknown>; build: z.ZodDefault<z.ZodObject<{ format: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"file">, z.ZodLiteral<"directory">, z.ZodLiteral<"preserve">]>>>; client: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>; server: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>; assets: z.ZodDefault<z.ZodOptional<z.ZodString>>; assetsPrefix: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodOptional<z.ZodIntersection<z.ZodObject<{ fallback: z.ZodString; }, "strip", z.ZodTypeAny, { fallback: string; }, { fallback: string; }>, z.ZodRecord<z.ZodString, z.ZodString>>>]>; serverEntry: z.ZodDefault<z.ZodOptional<z.ZodString>>; redirects: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; inlineStylesheets: z.ZodDefault<z.ZodOptional<z.ZodEnum<["always", "auto", "never"]>>>; concurrency: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { client: URL; format: "file" | "directory" | "preserve"; server: URL; assets: string; serverEntry: string; redirects: boolean; inlineStylesheets: "never" | "always" | "auto"; concurrency: number; assetsPrefix?: string | ({ fallback: string; } & Record<string, string>) | undefined; }, { client?: string | undefined; format?: "file" | "directory" | "preserve" | undefined; server?: string | undefined; assets?: string | undefined; serverEntry?: string | undefined; redirects?: boolean | undefined; inlineStylesheets?: "never" | "always" | "auto" | undefined; concurrency?: number | undefined; assetsPrefix?: string | ({ fallback: string; } & Record<string, string>) | undefined; }>>; server: z.ZodEffects<z.ZodDefault<z.ZodObject<{ open: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>; host: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>; port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; headers: z.ZodOptional<z.ZodType<OutgoingHttpHeaders, z.ZodTypeDef, OutgoingHttpHeaders>>; allowedHosts: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<true>]>>>; }, "strip", z.ZodTypeAny, { host: string | boolean; port: number; allowedHosts: true | string[]; open: string | boolean; headers?: OutgoingHttpHeaders | undefined; }, { host?: string | boolean | undefined; port?: number | undefined; allowedHosts?: true | string[] | undefined; headers?: OutgoingHttpHeaders | undefined; open?: string | boolean | undefined; }>>, { host: string | boolean; port: number; allowedHosts: true | string[]; open: string | boolean; headers?: OutgoingHttpHeaders | undefined; }, unknown>; redirects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{ status: z.ZodUnion<[z.ZodLiteral<300>, z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<304>, z.ZodLiteral<307>, z.ZodLiteral<308>]>; destination: z.ZodString; }, "strip", z.ZodTypeAny, { status: 300 | 301 | 302 | 303 | 304 | 307 | 308; destination: string; }, { status: 300 | 301 | 302 | 303 | 304 | 307 | 308; destination: string; }>]>>>; prefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{ prefetchAll: z.ZodOptional<z.ZodBoolean>; defaultStrategy: z.ZodOptional<z.ZodEnum<["tap", "hover", "viewport", "load"]>>; }, "strip", z.ZodTypeAny, { prefetchAll?: boolean | undefined; defaultStrategy?: "load" | "tap" | "hover" | "viewport" | undefined; }, { prefetchAll?: boolean | undefined; defaultStrategy?: "load" | "tap" | "hover" | "viewport" | undefined; }>]>>; image: z.ZodDefault<z.ZodObject<{ endpoint: z.ZodDefault<z.ZodObject<{ route: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"/_image">, z.ZodString]>>; entrypoint: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { route: string; entrypoint?: string | undefined; }, { entrypoint?: string | undefined; route?: string | undefined; }>>; service: z.ZodDefault<z.ZodObject<{ entrypoint: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"astro/assets/services/sharp">, z.ZodString]>>; config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>; }, "strip", z.ZodTypeAny, { entrypoint: string; config: Record<string, any>; }, { entrypoint?: string | undefined; config?: Record<string, any> | undefined; }>>; domains: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; remotePatterns: z.ZodDefault<z.ZodArray<z.ZodObject<{ protocol: z.ZodOptional<z.ZodString>; hostname: z.ZodOptional<z.ZodString>; port: z.ZodOptional<z.ZodString>; pathname: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { port?: string | undefined; protocol?: string | undefined; hostname?: string | undefined; pathname?: string | undefined; }, { port?: string | undefined; protocol?: string | undefined; hostname?: string | undefined; pathname?: string | undefined; }>, "many">>; experimentalLayout: z.ZodOptional<z.ZodEnum<["constrained", "fixed", "full-width", "none"]>>; experimentalObjectFit: z.ZodOptional<z.ZodString>; experimentalObjectPosition: z.ZodOptional<z.ZodString>; experimentalBreakpoints: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { endpoint: { route: string; entrypoint?: string | undefined; }; service: { entrypoint: string; config: Record<string, any>; }; domains: string[]; remotePatterns: { port?: string | undefined; protocol?: string | undefined; hostname?: string | undefined; pathname?: string | undefined; }[]; experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined; experimentalObjectFit?: string | undefined; experimentalObjectPosition?: string | undefined; experimentalBreakpoints?: number[] | undefined; }, { endpoint?: { entrypoint?: string | undefined; route?: string | undefined; } | undefined; service?: { entrypoint?: string | undefined; config?: Record<string, any> | undefined; } | undefined; domains?: string[] | undefined; remotePatterns?: { port?: string | undefined; protocol?: string | undefined; hostname?: string | undefined; pathname?: string | undefined; }[] | undefined; experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined; experimentalObjectFit?: string | undefined; experimentalObjectPosition?: string | undefined; experimentalBreakpoints?: number[] | undefined; }>>; devToolbar: z.ZodDefault<z.ZodObject<{ enabled: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { enabled: boolean; }, { enabled?: boolean | undefined; }>>; markdown: z.ZodDefault<z.ZodObject<{ syntaxHighlight: z.ZodDefault<z.ZodUnion<[z.ZodDefault<z.ZodObject<{ type: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"shiki">, z.ZodLiteral<"prism">]>>; excludeLangs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; }, "strip", z.ZodTypeAny, { type: "shiki" | "prism"; excludeLangs: string[]; }, { type?: "shiki" | "prism" | undefined; excludeLangs?: string[] | undefined; }>>, z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"shiki">, z.ZodLiteral<"prism">]>>, z.ZodLiteral<false>]>>; shikiConfig: z.ZodDefault<z.ZodObject<{ langs: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodType<ShikiLang, z.ZodTypeDef, ShikiLang>, "many">, ShikiLang[], ShikiLang[]>>; langAlias: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>; theme: z.ZodDefault<z.ZodUnion<[z.ZodEnum<[import("shiki").BundledTheme, ...import("shiki").BundledTheme[]]>, z.ZodType<ShikiTheme, z.ZodTypeDef, ShikiTheme>]>>; themes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEnum<[import("shiki").BundledTheme, ...import("shiki").BundledTheme[]]>, z.ZodType<ShikiTheme, z.ZodTypeDef, ShikiTheme>]>>>; defaultColor: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"light">, z.ZodLiteral<"dark">, z.ZodString, z.ZodLiteral<false>]>>; wrap: z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>; transformers: z.ZodDefault<z.ZodArray<z.ZodType<ShikiTransformer, z.ZodTypeDef, ShikiTransformer>, "many">>; }, "strip", z.ZodTypeAny, { langs: ShikiLang[]; theme: import("shiki").BundledTheme | ShikiTheme; themes: Record<string, import("shiki").BundledTheme | ShikiTheme>; langAlias: Record<string, string>; wrap: boolean | null; transformers: ShikiTransformer[]; defaultColor?: string | false | undefined; }, { langs?: ShikiLang[] | undefined; theme?: import("shiki").BundledTheme | ShikiTheme | undefined; themes?: Record<string, import("shiki").BundledTheme | ShikiTheme> | undefined; langAlias?: Record<string, string> | undefined; defaultColor?: string | false | undefined; wrap?: boolean | null | undefined; transformers?: ShikiTransformer[] | undefined; }>>; 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">>; 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">>; remarkRehype: z.ZodDefault<z.ZodType<RemarkRehype, z.ZodTypeDef, RemarkRehype>>; gfm: z.ZodDefault<z.ZodBoolean>; smartypants: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { syntaxHighlight: false | "shiki" | "prism" | { type: "shiki" | "prism"; excludeLangs: string[]; }; shikiConfig: { langs: ShikiLang[]; theme: import("shiki").BundledTheme | ShikiTheme; themes: Record<string, import("shiki").BundledTheme | ShikiTheme>; langAlias: Record<string, string>; wrap: boolean | null; transformers: ShikiTransformer[]; defaultColor?: string | false | undefined; }; remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[]; rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[]; remarkRehype: RemarkRehype; gfm: boolean; smartypants: boolean; }, { syntaxHighlight?: false | "shiki" | "prism" | { type?: "shiki" | "prism" | undefined; excludeLangs?: string[] | undefined; } | undefined; shikiConfig?: { langs?: ShikiLang[] | undefined; theme?: import("shiki").BundledTheme | ShikiTheme | undefined; themes?: Record<string, import("shiki").BundledTheme | ShikiTheme> | undefined; langAlias?: Record<string, string> | undefined; defaultColor?: string | false | undefined; wrap?: boolean | null | undefined; transformers?: ShikiTransformer[] | undefined; } | undefined; remarkPlugins?: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[] | undefined; rehypePlugins?: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[] | undefined; remarkRehype?: RemarkRehype | undefined; gfm?: boolean | undefined; smartypants?: boolean | undefined; }>>; vite: z.ZodDefault<z.ZodType<ViteUserConfig, z.ZodTypeDef, ViteUserConfig>>; i18n: z.ZodOptional<z.ZodOptional<z.ZodObject<{ defaultLocale: z.ZodString; locales: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{ path: z.ZodString; codes: z.ZodArray<z.ZodString, "atleastone">; }, "strip", z.ZodTypeAny, { path: string; codes: [string, ...string[]]; }, { path: string; codes: [string, ...string[]]; }>]>, "many">; domains: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; routing: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"manual">, z.ZodObject<{ prefixDefaultLocale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; redirectToDefaultLocale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; fallbackType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["redirect", "rewrite"]>>>; }, "strip", z.ZodTypeAny, { prefixDefaultLocale: boolean; redirectToDefaultLocale: boolean; fallbackType: "redirect" | "rewrite"; }, { prefixDefaultLocale?: boolean | undefined; redirectToDefaultLocale?: boolean | undefined; fallbackType?: "redirect" | "rewrite" | undefined; }>]>>>; }, "strip", z.ZodTypeAny, { defaultLocale: string; locales: (string | { path: string; codes: [string, ...string[]]; })[]; routing: "manual" | { prefixDefaultLocale: boolean; redirectToDefaultLocale: boolean; fallbackType: "redirect" | "rewrite"; }; fallback?: Record<string, string> | undefined; domains?: Record<string, string> | undefined; }, { defaultLocale: string; locales: (string | { path: string; codes: [string, ...string[]]; })[]; fallback?: Record<string, string> | undefined; domains?: Record<string, string> | undefined; routing?: "manual" | { prefixDefaultLocale?: boolean | undefined; redirectToDefaultLocale?: boolean | undefined; fallbackType?: "redirect" | "rewrite" | undefined; } | undefined; }>>>; security: z.ZodDefault<z.ZodOptional<z.ZodObject<{ checkOrigin: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { checkOrigin: boolean; }, { checkOrigin?: boolean | undefined; }>>>; env: z.ZodDefault<z.ZodOptional<z.ZodObject<{ schema: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodIntersection<z.ZodEffects<z.ZodType<{ context: "client"; access: "public"; } | { context: "server"; access: "public"; } | { context: "server"; access: "secret"; }, z.ZodTypeDef, { context: "client"; access: "public"; } | { context: "server"; access: "public"; } | { context: "server"; access: "secret"; }>, { context: "client"; access: "public"; } | { context: "server"; access: "public"; } | { context: "server"; access: "secret"; }, { context: "client"; access: "public"; } | { context: "server"; access: "public"; } | { context: "server"; access: "secret"; }>, z.ZodUnion<[z.ZodObject<{ type: z.ZodLiteral<"string">; optional: z.ZodOptional<z.ZodBoolean>; default: z.ZodOptional<z.ZodString>; max: z.ZodOptional<z.ZodNumber>; min: z.ZodOptional<z.ZodNumber>; length: z.ZodOptional<z.ZodNumber>; url: z.ZodOptional<z.ZodBoolean>; includes: z.ZodOptional<z.ZodString>; startsWith: z.ZodOptional<z.ZodString>; endsWith: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "string"; length?: number | undefined; includes?: string | undefined; endsWith?: string | undefined; startsWith?: string | undefined; default?: string | undefined; optional?: boolean | undefined; max?: number | undefined; min?: number | undefined; url?: boolean | undefined; }, { type: "string"; length?: number | undefined; includes?: string | undefined; endsWith?: string | undefined; startsWith?: string | undefined; default?: string | undefined; optional?: boolean | undefined; max?: number | undefined; min?: number | undefined; url?: boolean | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"number">; optional: z.ZodOptional<z.ZodBoolean>; default: z.ZodOptional<z.ZodNumber>; gt: z.ZodOptional<z.ZodNumber>; min: z.ZodOptional<z.ZodNumber>; lt: z.ZodOptional<z.ZodNumber>; max: z.ZodOptional<z.ZodNumber>; int: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "number"; default?: number | undefined; optional?: boolean | undefined; max?: number | undefined; min?: number | undefined; gt?: number | undefined; lt?: number | undefined; int?: boolean | undefined; }, { type: "number"; default?: number | undefined; optional?: boolean | undefined; max?: number | undefined; min?: number | undefined; gt?: number | undefined; lt?: number | undefined; int?: boolean | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"boolean">; optional: z.ZodOptional<z.ZodBoolean>; default: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "boolean"; default?: boolean | undefined; optional?: boolean | undefined; }, { type: "boolean"; default?: boolean | undefined; optional?: boolean | undefined; }>, z.ZodEffects<z.ZodObject<{ type: z.ZodLiteral<"enum">; values: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">; optional: z.ZodOptional<z.ZodBoolean>; default: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { values: string[]; type: "enum"; default?: string | undefined; optional?: boolean | undefined; }, { values: string[]; type: "enum"; default?: string | undefined; optional?: boolean | undefined; }>, { values: string[]; type: "enum"; default?: string | undefined; optional?: boolean | undefined; }, { values: string[]; type: "enum"; default?: string | undefined; optional?: boolean | undefined; }>]>>>>>; validateSecrets: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strict", z.ZodTypeAny, { validateSecrets: boolean; schema: Record<string, ({ context: "client"; access: "public"; } | { context: "server"; access: "public"; } | { context: "server"; access: "secret"; }) & ({ type: "string"; length?: number | undefined; includes?: string | undefined; endsWith?: string | undefined; startsWith?: string | undefined; default?: string | undefined; optional?: boolean | undefined; max?: number | undefined; min?: number | undefined; url?: boolean | undefined; } | { type: "number"; default?: number | undefined; optional?: boolean | undefined; max?: number | undefined; min?: number | undefined; gt?: number | undefined; lt?: number | undefined; int?: boolean | undefined; } | { type: "boolean"; default?: boolean | undefined; optional?: boolean | undefined; } | { values: string[]; type: "enum"; default?: string | undefined; optional?: boolean | undefined; })>; }, { validateSecrets?: boolean | undefined; schema?: Record<string, ({ context: "client"; access: "public"; } | { context: "server"; access: "public"; } | { context: "server"; access: "secret"; }) & ({ type: "string"; length?: number | undefined; includes?: string | undefined; endsWith?: string | undefined; startsWith?: string | undefined; default?: string | undefined; optional?: boolean | undefined; max?: number | undefined; min?: number | undefined; url?: boolean | undefined; } | { type: "number"; default?: number | undefined; optional?: boolean | undefined; max?: number | undefined; min?: number | undefined; gt?: number | undefined; lt?: number | undefined; int?: boolean | undefined; } | { type: "boolean"; default?: boolean | undefined; optional?: boolean | undefined; } | { values: string[]; type: "enum"; default?: string | undefined; optional?: boolean | undefined; })> | undefined; }>>>; session: z.ZodOptional<z.ZodObject<{ driver: z.ZodString; options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; cookie: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{ name: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; path: z.ZodOptional<z.ZodString>; maxAge: z.ZodOptional<z.ZodNumber>; sameSite: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["strict", "lax", "none"]>, z.ZodBoolean]>>; secure: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { domain?: string | undefined; path?: string | undefined; maxAge?: number | undefined; sameSite?: boolean | "lax" | "strict" | "none" | undefined; secure?: boolean | undefined; name?: string | undefined; }, { domain?: string | undefined; path?: string | undefined; maxAge?: number | undefined; sameSite?: boolean | "lax" | "strict" | "none" | undefined; secure?: boolean | undefined; name?: string | undefined; }>, z.ZodString]>, { domain?: string | undefined; path?: string | undefined; maxAge?: number | undefined; sameSite?: boolean | "lax" | "strict" | "none" | undefined; secure?: boolean | undefined; name?: string | undefined; }, string | { domain?: string | undefined; path?: string | undefined; maxAge?: number | undefined; sameSite?: boolean | "lax" | "strict" | "none" | undefined; secure?: boolean | undefined; name?: string | undefined; }>>; ttl: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { driver: string; cookie?: { domain?: string | undefined; path?: string | undefined; maxAge?: number | undefined; sameSite?: boolean | "lax" | "strict" | "none" | undefined; secure?: boolean | undefined; name?: string | undefined; } | undefined; options?: Record<string, any> | undefined; ttl?: number | undefined; }, { driver: string; cookie?: string | { domain?: string | undefined; path?: string | undefined; maxAge?: number | undefined; sameSite?: boolean | "lax" | "strict" | "none" | undefined; secure?: boolean | undefined; name?: string | undefined; } | undefined; options?: Record<string, any> | undefined; ttl?: number | undefined; }>>; experimental: z.ZodDefault<z.ZodObject<{ clientPrerender: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; contentIntellisense: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; responsiveImages: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; headingIdCompat: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; preserveScriptOrder: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; fonts: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{ name: z.ZodString; cssVariable: z.ZodString; }, { fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; optimizedFallbacks: z.ZodOptional<z.ZodBoolean>; }>, { provider: z.ZodLiteral<"local">; variants: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{ weight: z.ZodUnion<[z.ZodString, z.ZodNumber]>; style: z.ZodEnum<["normal", "italic", "oblique"]>; display: z.ZodOptional<z.ZodEnum<["auto", "block", "swap", "fallback", "optional"]>>; unicodeRange: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>; stretch: z.ZodOptional<z.ZodString>; featureSettings: z.ZodOptional<z.ZodString>; variationSettings: z.ZodOptional<z.ZodString>; }, { src: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<URL, z.ZodTypeDef, URL>]>, z.ZodObject<{ url: z.ZodUnion<[z.ZodString, z.ZodType<URL, z.ZodTypeDef, URL>]>; tech: z.ZodOptional<z.ZodString>; }, "strict", z.ZodTypeAny, { url: string | URL; tech?: string | undefined; }, { url: string | URL; tech?: string | undefined; }>]>, "atleastone">; }>, "strict", z.ZodTypeAny, { style: "normal" | "italic" | "oblique"; src: [string | URL | { url: string | URL; tech?: string | undefined; }, ...(string | URL | { url: string | URL; tech?: string | undefined; })[]]; weight: string | number; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; }, { style: "normal" | "italic" | "oblique"; src: [string | URL | { url: string | URL; tech?: string | undefined; }, ...(string | URL | { url: string | URL; tech?: string | undefined; })[]]; weight: string | number; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; }>, "atleastone">; }>, "strict", z.ZodTypeAny, { name: string; cssVariable: string; provider: "local"; variants: [{ style: "normal" | "italic" | "oblique"; src: [string | URL | { url: string | URL; tech?: string | undefined; }, ...(string | URL | { url: string | URL; tech?: string | undefined; })[]]; weight: string | number; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; }, ...{ style: "normal" | "italic" | "oblique"; src: [string | URL | { url: string | URL; tech?: string | undefined; }, ...(string | URL | { url: string | URL; tech?: string | undefined; })[]]; weight: string | number; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; }[]]; fallbacks?: string[] | undefined; optimizedFallbacks?: boolean | undefined; }, { name: string; cssVariable: string; provider: "local"; variants: [{ style: "normal" | "italic" | "oblique"; src: [string | URL | { url: string | URL; tech?: string | undefined; }, ...(string | URL | { url: string | URL; tech?: string | undefined; })[]]; weight: string | number; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; }, ...{ style: "normal" | "italic" | "oblique"; src: [string | URL | { url: string | URL; tech?: string | undefined; }, ...(string | URL | { url: string | URL; tech?: string | undefined; })[]]; weight: string | number; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; }[]]; fallbacks?: string[] | undefined; optimizedFallbacks?: boolean | undefined; }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{ name: z.ZodString; cssVariable: z.ZodString; }, Omit<{ weight: z.ZodUnion<[z.ZodString, z.ZodNumber]>; style: z.ZodEnum<["normal", "italic", "oblique"]>; display: z.ZodOptional<z.ZodEnum<["auto", "block", "swap", "fallback", "optional"]>>; unicodeRange: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>; stretch: z.ZodOptional<z.ZodString>; featureSettings: z.ZodOptional<z.ZodString>; variationSettings: z.ZodOptional<z.ZodString>; }, "style" | "weight">>, { fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; optimizedFallbacks: z.ZodOptional<z.ZodBoolean>; }>, { provider: z.ZodObject<{ entrypoint: z.ZodUnion<[z.ZodString, z.ZodType<URL, z.ZodTypeDef, URL>]>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, "strict", z.ZodTypeAny, { entrypoint: string | URL; config?: Record<string, any> | undefined; }, { entrypoint: string | URL; config?: Record<string, any> | undefined; }>; weights: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "atleastone">>; styles: z.ZodOptional<z.ZodArray<z.ZodEnum<["normal", "italic", "oblique"]>, "atleastone">>; subsets: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>; }>, "strict", z.ZodTypeAny, { name: string; cssVariable: string; provider: { entrypoint: string | URL; config?: Record<string, any> | undefined; }; fallbacks?: string[] | undefined; optimizedFallbacks?: boolean | undefined; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; weights?: [string | number, ...(string | number)[]] | undefined; styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined; subsets?: [string, ...string[]] | undefined; }, { name: string; cssVariable: string; provider: { entrypoint: string | URL; config?: Record<string, any> | undefined; }; fallbacks?: string[] | undefined; optimizedFallbacks?: boolean | undefined; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; weights?: [string | number, ...(string | number)[]] | undefined; styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined; subsets?: [string, ...string[]] | undefined; }>]>, "many">>; }, "strict", z.ZodTypeAny, { clientPrerender: boolean; contentIntellisense: boolean; responsiveImages: boolean; headingIdCompat: boolean; preserveScriptOrder: boolean; fonts?: ({ name: string; cssVariable: string; provider: "local"; variants: [{ style: "normal" | "italic" | "oblique"; src: [string | URL | { url: string | URL; tech?: string | undefined; }, ...(string | URL | { url: string | URL; tech?: string | undefined; })[]]; weight: string | number; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; }, ...{ style: "normal" | "italic" | "oblique"; src: [string | URL | { url: string | URL; tech?: string | undefined; }, ...(string | URL | { url: string | URL; tech?: string | undefined; })[]]; weight: string | number; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; }[]]; fallbacks?: string[] | undefined; optimizedFallbacks?: boolean | undefined; } | { name: string; cssVariable: string; provider: { entrypoint: string | URL; config?: Record<string, any> | undefined; }; fallbacks?: string[] | undefined; optimizedFallbacks?: boolean | undefined; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; weights?: [string | number, ...(string | number)[]] | undefined; styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined; subsets?: [string, ...string[]] | undefined; })[] | undefined; }, { clientPrerender?: boolean | undefined; contentIntellisense?: boolean | undefined; responsiveImages?: boolean | undefined; headingIdCompat?: boolean | undefined; preserveScriptOrder?: boolean | undefined; fonts?: ({ name: string; cssVariable: string; provider: "local"; variants: [{ style: "normal" | "italic" | "oblique"; src: [string | URL | { url: string | URL; tech?: string | undefined; }, ...(string | URL | { url: string | URL; tech?: string | undefined; })[]]; weight: string | number; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; }, ...{ style: "normal" | "italic" | "oblique"; src: [string | URL | { url: string | URL; tech?: string | undefined; }, ...(string | URL | { url: string | URL; tech?: string | undefined; })[]]; weight: string | number; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; }[]]; fallbacks?: string[] | undefined; optimizedFallbacks?: boolean | undefined; } | { name: string; cssVariable: string; provider: { entrypoint: string | URL; config?: Record<string, any> | undefined; }; fallbacks?: string[] | undefined; optimizedFallbacks?: boolean | undefined; display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined; unicodeRange?: [string, ...string[]] | undefined; stretch?: string | undefined; featureSettings?: string | undefined; variationSettings?: string | undefined; weights?: [string | number, ...(string | number)[]] | undefined; styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined; subsets?: [string, ...string[]] | undefined; })[] | undefined; }>>; legacy: z.ZodDefault<z.ZodObject<{ collections: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { collections: boolean; }, { collections?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { trailingSlash: "never" | "ignore" | "always"; server: { host: string | boolean; port: number; allowedHosts: true | string[]; open: string | boolean; headers?: OutgoingHttpHeaders | undefined; }; redirects: Record<string, string | { status: 300 | 301 | 302 | 303 | 304 | 307 | 308; destination: string; }>; build: { client: URL; format: "file" | "directory" | "preserve"; server: URL; assets: string; serverEntry: string; redirects: boolean; inlineStylesheets: "never" | "always" | "auto"; concurrency: number; assetsPrefix?: string | ({ fallback: string; } & Record<string, string>) | undefined; }; root: URL; srcDir: URL; publicDir: URL; outDir: URL; cacheDir: URL; compressHTML: boolean; base: string; output: "server" | "static"; scopedStyleStrategy: "where" | "class" | "attribute"; integrations: { name: string; hooks: {} & { [k: string]: unknown; }; }[]; image: { endpoint: { route: string; entrypoint?: string | undefined; }; service: { entrypoint: string; config: Record<string, any>; }; domains: string[]; remotePatterns: { port?: string | undefined; protocol?: string | undefined; hostname?: string | undefined; pathname?: string | undefined; }[]; experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined; experimentalObjectFit?: string | undefined; experimentalObjectPosition?: string | undefined; experimentalBreakpoints?: number[] | undefined; }; devToolbar: { enabled: boolean; }; markdown: { syntaxHighlight: false | "shiki" | "prism" | { type: "shiki" | "prism"; excludeLangs: string[]; }; shikiConfig: { langs: ShikiLang[]; theme: import("shiki").BundledTheme | ShikiTheme; themes: Record<string, import("shiki").BundledTheme | ShikiTheme>; langAlias: Record<string, string>; wrap: boolean | null; transformers: ShikiTransformer[]; defaultColor?: string | false | undefined; }; remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[]; rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[]; remarkRehype: RemarkRehype; gfm: boolean; smartypants: boolean; }; vite: ViteUserConfig; security: { checkOrigin: boolean; }; env: { validateSecrets: boolean; schema: Record<string, ({ context: "client"; access: "public"; } | { context: "server"; access: "public"; } | { context: "server"; access: "secret"; }) & ({ type: "string"; length?: number | undefined; includes?: string | undefined; endsWith?: string | undefined; startsWith?: string | undefined; default?: string | undefined; optional?: boolean | undefined; max?: number | undefined; min?: number | undefined; url?: boolean | undefined; } | { type: "number"; default?: number | undefined; optional?: boolean | undefined; max?: number | undefined; min?: number | undefined; gt?: number | undefined; lt?: number | undefined; int?: boolean | undefined; } | { type: "boolean"; default?: boolean | undefined; optional?: boolean | undefined; } | { values: string[]; type: "enum"; default?: string | undefined; optional?: boolean | undef