import { AvailableTranslations } from './hooks/useAvailableTranslations.js'; import { Video } from './hooks/unstable_useVideos.js'; import { IslandWithPropsAndUrl } from './islands/constants.js'; import { PodcastShow } from './hooks/unstable_usePodcastShows.js'; import { PodcastEpisode } from './hooks/unstable_usePodcastEpisodes.js'; import { LanguageVariant } from './hooks/useLanguageVariants.js'; import type { SiteMenu } from './hooks/useMenu.js'; import type { BrandSettings } from './hooks/useBrandSettings.js'; export declare type Hublet = 'na1'; export declare type HSEnvironment = 'qa' | 'prod'; export declare type HSRenderSource = 'worker' | 'cos-renderer' | 'internal-api' | 'content-editor'; export declare type WindowPlus = typeof window & { __islands: Array; __hsServerPageUrl: string; __hsBasePath: string; __hsSSInit: Record; __hsSS?: Map; }; export declare type Override = Omit & O; export declare type ModuleWithDefaultExport = { default: TModule; }; export declare type DynamicImportFunc = () => Promise>; export declare type LazyModule = { moduleName: string; moduleId: string; } & DynamicImportFunc; export declare type ModuleProps> = { moduleName?: string; fieldValues: T; hublParameters: Record; dataQueryResult?: any; serverSideProps?: any; hublData?: any; experimentalHublData?: any; supplementalFieldValues?: Record; urlWithQuery?: string; urlWithoutQuery?: string; getServerSidePropsDependencies?: ModuleDataFetchDepsObject; contact?: Contact; request?: DataFetchRequest; resolvedDataDependencies?: ResolvedDataDependencies; }; export interface DataDependencies { availableTranslations?: boolean; } declare type ResolvedAvailableTranslationsDependency = { type: 'success'; data: AvailableTranslations; } | { type: 'error'; error?: string; } | null; declare type ResolvedLanguageVariantsDependency = { status: 'SUCCESS'; data: LanguageVariant[]; } | { status: 'ERROR'; error?: string; } | { status: 'WARNING'; warning?: string; } | null; declare type ResolvedVideoDependency = { status: 'success'; ids: number[]; } | { status: 'error'; ids: number[]; error?: string; } | null; declare type ResolvedPodcastShowDependency = { status: 'success'; ids: number[]; } | { status: 'error'; ids: number[]; error?: string; } | null; declare type ResolvedPodcastEpisodeDependency = { status: 'success'; ids: number[]; } | { status: 'error'; ids: number[]; error?: string; } | null; declare type ResolvedMenuDependency = { status: 'success'; id?: number; } | { status: 'error'; error?: string; }; declare type ResolvedEditorVariableChecksDependency = { type: 'success'; data: Record; } | { type: 'error'; error?: string; } | { type: 'deferred'; } | null; declare type ResolvedBrandSettingsDependency = { type: 'success'; data: BrandSettings; } | { type: 'error'; error?: string; } | { type: 'deferred'; } | null; export declare type ResolvedDataDependencies = { availableTranslations?: ResolvedAvailableTranslationsDependency; videos?: { data: Record; dependencies: Record; }; podcastShows?: { data: Record; dependencies: Record; }; podcastEpisodes?: { data: Record; dependencies: Record; }; languageVariants?: ResolvedLanguageVariantsDependency; menus?: { data: Record; dependencies: Record; }; editorVariableChecks?: ResolvedEditorVariableChecksDependency; brandSettings?: ResolvedBrandSettingsDependency; }; export interface CacheControlValue { maxAge?: number | null; sharedMaxAge?: number | null; maxStale?: boolean | null; maxStaleDuration?: number | null; minFresh?: number | null; immutable?: boolean | null; mustRevalidate?: boolean | null; noCache?: boolean | null; noStore?: boolean | null; noTransform?: boolean | null; onlyIfCached?: boolean | null; private?: boolean | null; proxyRevalidate?: boolean | null; public?: boolean | null; staleWhileRevalidate?: number | null; staleIfError?: number | null; } export declare type CachingHeaders = { ['Cache-Control']?: string; ['ETag']?: string; ['Last-Modified']?: string; }; export declare type CacheConfig = { cacheControl?: CacheControlValue; lastModified?: Date | number | string; eTag?: string; }; export declare type ServerSidePropsResource = { caching: CacheConfig; serverSideProps: any; }; export declare const MAX_AGE_CACHE_FOR_AN_HOUR: CacheConfig; export declare type URLWithoutQuery = Pick & { hasNoQuery: true; }; export declare type DataFetchRequest = { headers: Record; url: string; }; export declare type Contact = Record & { firstname?: string; lastname?: string; email?: string; address?: string; }; export declare type ModuleDataFetchResult = { serverSideProps: Record; caching: CacheConfig; }; declare type MaybePromise = T | Promise; declare const ALL_MODULE_DEPENDENCY_KINDS: readonly ["moduleProps", "urlWithoutQuery", "urlWithQuery", "contact", "fullRequest"]; export declare type ModuleDependencyKind = (typeof ALL_MODULE_DEPENDENCY_KINDS)[number]; export declare const ALL_MODULE_DATA_FETCH_DEPENDENCY_TYPES: readonly ["moduleProps", "moduleProps-urlWithoutQuery", "moduleProps-urlWithQuery", "moduleProps-urlWithQuery-contact", "moduleProps-urlWithQuery-contact-fullRequest"]; export declare type ModuleDataFetchDependency = (typeof ALL_MODULE_DATA_FETCH_DEPENDENCY_TYPES)[number]; export declare type ModuleDataFetchDepsObject = Record; export declare const MODULE_DATA_FETCH_DEPENDENCY_AS_OBJECT: Map<"moduleProps" | "moduleProps-urlWithoutQuery" | "moduleProps-urlWithQuery" | "moduleProps-urlWithQuery-contact" | "moduleProps-urlWithQuery-contact-fullRequest", ModuleDataFetchDepsObject>; export declare type ModulePropsWithoutSSP = Omit; declare type UrlWithoutQueryDep = { url: URLWithoutQuery; }; declare type UrlWithQueryDep = { url: URL; }; declare type UrlAndContactDep = UrlWithQueryDep & { contact: Contact; }; declare type UrlContactAndRequestDep = UrlAndContactDep & { request: DataFetchRequest; }; export declare type ExtraSSPDeps = Partial; export declare type ModuleDataFetchFuncByDependency = { moduleProps: (props: ModulePropsWithoutSSP) => MaybePromise; 'moduleProps-urlWithoutQuery': (props: ModulePropsWithoutSSP, extraDeps: UrlWithoutQueryDep) => MaybePromise; 'moduleProps-urlWithQuery': (props: ModulePropsWithoutSSP, extraDeps: UrlWithQueryDep) => MaybePromise; 'moduleProps-urlWithQuery-contact': (props: ModulePropsWithoutSSP, extraDeps: UrlAndContactDep) => MaybePromise; 'moduleProps-urlWithQuery-contact-fullRequest': (props: ModulePropsWithoutSSP, extraDeps: UrlContactAndRequestDep) => MaybePromise; }; export {};