import type { RuntimeI18nConfig } from '../../../utils/i18n.js'; export type { RuntimeI18nConfig } from '../../../utils/i18n.js'; export interface LocaleAlternate { code: string; hreflang: string; path: string; } export interface RouteLocaleInfo { /** Resolved locale code for this route */ locale: string; /** Route with locale prefix stripped (e.g. /fr/about → /about). For no_prefix this equals route. */ basePath: string; } /** * Resolve which locale a route belongs to and the locale-stripped base path. */ export declare function resolveLocaleFromRoute(route: string, i18n: RuntimeI18nConfig): RouteLocaleInfo; /** * Build the URL path for a base path under a given locale, honoring the i18n strategy. */ export declare function localePath(basePath: string, locale: string, i18n: RuntimeI18nConfig): string; /** * Compute hreflang alternates for a given route. * Returns the route itself plus all sibling locale variants. */ export declare function computeLocaleAlternates(route: string, i18n: RuntimeI18nConfig): LocaleAlternate[]; /** * Get the runtime i18n config from runtimeConfig (or null if disabled). */ export declare function getRuntimeI18n(aiReadyConfig: { i18n?: RuntimeI18nConfig | null; }): RuntimeI18nConfig | null;