import { ComputedRef, Ref } from 'vue'; declare const SiteConfigPriority: { readonly system: -15; readonly vendor: -5; readonly nitro: -4; readonly config: -3; readonly i18n: -2; readonly build: -1; readonly runtime: 0; }; interface SiteConfigResolved { /** * The canonical Site URL. * * - Build / Prerender: Inferred from CI environment (Netlify, Vercel) * - SSR: Inferred from request headers * - SPA: Inferred from `window.location` * * Used by: nuxt-simple-sitemap, nuxt-simple-robots, nuxt-schema-org, nuxt-og-image, etc. */ url?: string; /** * The name of the site. * * - Build / Prerender: Inferred from CI environment (Netlify) * * Used by: nuxt-schema-org, nuxt-seo-kit */ name?: string; /** * Whether the site is indexable by search engines. * * Allows you to opt-out productions environment from being indexed. */ indexable?: boolean; /** * The environment of the site. Comparable to `process.env.NODE_ENV`. */ env?: 'production' | 'staging' | 'development' | 'preview' | 'uat' | string; /** * Whether the site uses trailing slash. */ trailingSlash?: boolean; /** * The mapping of the context of each site config value being set. */ _context?: Record; /** * Support any keys as site config. */ [key: string]: any; } /** * @deprecated use SiteConfigResolved */ type SiteConfig = SiteConfigResolved; type MaybeComputedRef = T | (() => T) | ComputedRef | Ref; type MaybeComputedRefEntries = { [key in keyof T]?: MaybeComputedRef; }; /** * Strip the string index signature from a type so mapped types preserve * the declared named keys (required for autocomplete and type checking). */ type KnownKeys = { [K in keyof T as string extends K ? never : number extends K ? never : K]: T[K]; }; type SiteConfigInput = Omit>, '_context' | 'indexable'> & { _context?: string; _priority?: number; indexable?: MaybeComputedRef; [key: string]: any; }; interface GetSiteConfigOptions { debug?: boolean; skipNormalize?: boolean; resolveRefs?: boolean; } interface SiteConfigStack { stack: Partial[]; push: (config: SiteConfigInput) => () => void; get: (options?: GetSiteConfigOptions) => SiteConfigResolved; } declare function normalizeSiteConfig(config: SiteConfigResolved): SiteConfigResolved; declare function validateSiteConfigStack(stack: SiteConfigStack, options?: { dev?: boolean; }): string[]; declare function createSiteConfigStack(options?: { debug: boolean; }): { stack: Partial[]; push: (input: SiteConfigInput | SiteConfigResolved) => () => void; get: (options?: GetSiteConfigOptions) => SiteConfigResolved; }; declare function envSiteConfig(env?: Record): Record; export { SiteConfigPriority, createSiteConfigStack, envSiteConfig, normalizeSiteConfig, validateSiteConfigStack }; export type { GetSiteConfigOptions, MaybeComputedRef, MaybeComputedRefEntries, SiteConfig, SiteConfigInput, SiteConfigResolved, SiteConfigStack };