import { t as Database } from "./types-BCOU_CXE.mjs"; import { Kysely } from "kysely"; //#region src/seo/hreflang.d.ts /** A single alternate link, ready to render as ``. */ interface HreflangAlternate { /** Locale code, or `"x-default"` for the default variant */ hreflang: string; /** Absolute URL of the variant */ href: string; } interface HreflangOptions { /** * Absolute site origin (e.g. `https://example.com`) used to build * the alternate URLs. Falls back to the site settings URL; when * neither is available the result is empty, since hreflang * requires fully-qualified URLs. */ siteUrl?: string; } /** * Resolve hreflang alternates for a content entry. * * @example * ```astro * --- * import { getHreflangAlternates } from "@premium-cms/emdash"; * * const alternates = await getHreflangAlternates("posts", entry.data.id, { * siteUrl: Astro.url.origin, * }); * --- *
* {alternates.map((a) => )} * * ``` */ declare function getHreflangAlternates(collection: string, entryId: string, options?: HreflangOptions): Promise