export { resolveGlobalConfigPublic }; export { resolvePageContextConfig }; export { resolveGlobalContextConfig }; export type { PageContextConfig }; export type { PageConfigPublicWithRoute }; export type { GlobalConfigPublic }; export type { Source }; export type { Sources }; export type { From }; export type { ExportsAll }; export type { ConfigEntries }; import type { FileType } from '../getPageFiles/fileTypes.js'; import type { PageFile } from '../getPageFiles/getPageFileObject.js'; import type { ConfigValues, PageConfigBuildTime, PageConfigGlobalBuildTime, PageConfigGlobalRuntime, PageConfigRuntime, PageConfigRuntimeLoaded } from '../../types/PageConfig.js'; import { type ConfigDefinedAtOptional } from './getConfigDefinedAt.js'; import type { ConfigResolved } from '../../types/Config/ConfigResolved.js'; import type { Route } from '../../types/Config.js'; type ExportsAll = Record; /** All the config's values (including overridden ones) and where they come from. * * https://vike.dev/pageContext */ type ConfigEntries = Record; type From = { configsStandard: Record; configsCumulative: Record; configsComputed: Record; }; type Source = Record; type Sources = Record; type SourceAny = SourceConfigsStandard | SourceConfigsCumulative | SourceConfigsComputed; type SourceConfigsStandard = { type: 'configsStandard'; value: unknown; definedAt: string; }; type SourceConfigsCumulative = { type: 'configsCumulative'; definedAt: string; values: { value: unknown; definedAt: string; }[]; }; type SourceConfigsComputed = { type: 'configsComputed'; definedAt: 'Vike'; value: unknown; }; type PageContextConfig = { /** The page's configuration values. * * https://vike.dev/config * https://vike.dev/pageContext#config */ config: ConfigResolved; source: Source; sources: Sources; from: From; /** The page's configuration, including the configs origin and overridden configs. * * https://vike.dev/config */ configEntries: ConfigEntries; /** Custom Exports/Hooks. * * https://vike.dev/exports */ exports: Record; /** * Same as `pageContext.exports` but cumulative. * * https://vike.dev/exports */ exportsAll: ExportsAll; /** @deprecated */ pageExports: Record; }; type WithRoute = { route: Route; isErrorPage?: undefined; } | { route?: undefined; isErrorPage: true; }; type PageConfigPublicWithRoute = ConfigPublic & WithRoute; type ConfigPublic = ReturnType; declare function getPublicCopy(configInternal: ReturnType): { config: ConfigResolved; _source: Source; _sources: Sources; _from: From; }; declare function resolvePageContextConfig(pageFiles: PageFile[], // V0.4 design pageConfig: PageConfigRuntimeLoaded | null, // V1 design pageConfigGlobal: PageConfigGlobalRuntime): PageContextConfig; declare function resolveGlobalContextConfig(pageConfigs: PageConfigRuntime[], pageConfigGlobal: PageConfigGlobalRuntime): { _globalConfigPublic: { pages: { [k: string]: PageConfigPublicWithRoute; }; config: ConfigResolved; _source: Source; _sources: Sources; _from: From; }; pages: { [k: string]: PageConfigPublicWithRoute; }; config: ConfigResolved; _source: Source; _sources: Sources; _from: From; }; type GlobalConfigPublic = Omit, '_globalConfigPublic'>; declare function resolveGlobalConfigPublic(pageConfigs: PageConfig[], pageConfigGlobal: PageConfigGlobal, getConfigValues: (config: PageConfig | PageConfigGlobal, isGlobalConfig?: true) => ConfigValues): { _globalConfigPublic: { pages: { [k: string]: PageConfigPublicWithRoute; }; config: ConfigResolved; _source: Source; _sources: Sources; _from: From; }; pages: { [k: string]: PageConfigPublicWithRoute; }; config: ConfigResolved; _source: Source; _sources: Sources; _from: From; }; declare function resolveConfigPublic_V1Design(pageConfig: { configValues: ConfigValues; }): { config: ConfigResolved; configEntries: ConfigEntries; exportsAll: ExportsAll; source: Source; sources: Sources; from: From; };