import { Mt as PublicPageContext, _t as PagePlacement, gt as PageMetadataLinkRel, pt as PageMetadataContribution, s as BreadcrumbItem, ut as PageFragmentContribution } from "../types-XJPFqvc1.mjs"; import { n as SeoSettings } from "../types-Blb-MRC3.mjs"; //#region src/page/context.d.ts /** Fields shared by both input forms */ interface PageContextFields { kind: "content" | "custom"; pageType?: string; title?: string | null; pageTitle?: string | null; description?: string | null; canonical?: string | null; image?: string | null; content?: { collection: string; id: string; slug?: string | null; }; /** SEO overrides for OG/Twitter meta generation */ seo?: { ogTitle?: string | null; ogDescription?: string | null; ogImage?: string | null; robots?: string | null; }; /** Article metadata for Open Graph article: tags */ articleMeta?: { publishedTime?: string | null; modifiedTime?: string | null; author?: string | null; }; /** Site name for structured data and og:site_name */ siteName?: string; /** * Breadcrumb trail for this page, root first. Pass an empty array * to explicitly opt out of breadcrumbs (e.g. homepage), or omit the * field to let consumers fall back to their own derivation. */ breadcrumbs?: BreadcrumbItem[]; /** Public-facing site URL (origin) for structured data */ siteUrl?: string; } /** Input with Astro global -- used in .astro files */ interface AstroInput extends PageContextFields { Astro: { url: URL; currentLocale?: string; }; } /** Input with explicit URL -- used outside .astro files */ interface UrlInput extends PageContextFields { url: URL | string; locale?: string; } type CreatePublicPageContextInput = AstroInput | UrlInput; /** * Build a PublicPageContext from template input. */ declare function createPublicPageContext(input: CreatePublicPageContextInput): PublicPageContext; //#endregion //#region src/page/metadata.d.ts interface ResolvedPageMetadata { meta: Array<{ name: string; content: string; }>; properties: Array<{ property: string; content: string; }>; links: Array<{ rel: PageMetadataLinkRel; href: string; hreflang?: string; }>; jsonld: Array<{ id?: string; json: string; }>; } interface RenderPageMetadataOptions { includeJsonLd?: boolean; } /** Escape a string for safe use in an HTML attribute value */ declare function escapeHtmlAttr(value: string): string; /** * Safely serialize a value for embedding in a " in a nested string breaks out of the script tag * - "