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; /** * Resolve hreflang alternates with an explicit db handle. * * @internal Use `getHreflangAlternates()` in templates. This variant is * for routes/components that already have a database handle. */ declare function getHreflangAlternatesWithDb(db: Kysely, collection: string, entryId: string, options?: HreflangOptions): Promise; //#endregion export { getHreflangAlternatesWithDb as i, HreflangOptions as n, getHreflangAlternates as r, HreflangAlternate as t }; //# sourceMappingURL=hreflang-BktsQIF_.d.mts.map