import type { Breadcrumb } from '../types/Breadcrumb.js'; import type { Locale } from '../types/Locale.js'; /** * The slug of the root page. * An empty string was chosen as the root page slug for two reasons: * 1. It allows the slug field to remain required, which wouldn't be possible if null/undefined were used * 2. It provides a consistent way to identify the root page in the URL structure * * This convention is used throughout the codebase when handling root page paths and breadcrumbs. */ export declare const ROOT_PAGE_SLUG = ""; /** Sets the slug field and virtual fields (breadcrumbs, path, alternatePaths) of the given root page document. */ export declare function setRootPageDocumentVirtualFields({ breadcrumbLabelField, doc, locale, locales, }: { breadcrumbLabelField: string; doc: Record; locale: Locale | undefined; locales: Locale[] | undefined; }): { breadcrumbs: Record; meta: any; path: Record; } | { breadcrumbs: { slug: string; label: any; path: string; }[]; meta: any; path: string; } | { breadcrumbs: { slug: string; label: any; path: string; }[]; path: string; };