import { NavigationFailure, RouteLocationAsPathGeneric, RouteLocationNamedRaw, RouteLocationNormalizedLoaded, RouteLocationRaw, RouteLocationResolved, RouteLocationResolvedGeneric, Router } from 'vue-router'; import { I18nRouteParams, Locale, ModuleOptionsExtend } from 'nuxt-i18n-micro-types'; interface NavigateToInterface { replace?: boolean; redirectCode?: number; external?: boolean; } export declare class RouteService { private i18nConfig; private router; private hashLocaleDefault; private noPrefixDefault; private navigateTo; private setCookie; private cookieLocaleDefault; private cookieLocaleName; constructor(i18nConfig: ModuleOptionsExtend, router: Router, hashLocaleDefault: string | null | undefined, noPrefixDefault: string | null | undefined, navigateTo: (to: RouteLocationRaw | undefined | null, options?: NavigateToInterface) => Promise | false | void | RouteLocationRaw, setCookie: (name: string, value: string) => void, cookieLocaleDefault?: string | null | undefined, cookieLocaleName?: string | null | undefined); /** * Extracts locale from URL path by checking the first path segment * @param path - URL path (e.g., '/ru/sdfsdf' or '/en/about') * @returns Locale code or null if not found */ private extractLocaleFromPath; getCurrentLocale(route?: RouteLocationNormalizedLoaded | RouteLocationResolvedGeneric): string; getCurrentName(route: RouteLocationNormalizedLoaded | RouteLocationResolvedGeneric): string | null; getRouteName(route: RouteLocationResolvedGeneric | RouteLocationNamedRaw, locale: string): string; getPluginRouteName(route: RouteLocationResolvedGeneric | RouteLocationNamedRaw, locale: string): string; getFullPathWithBaseUrl(currentLocale: Locale, route: RouteLocationRaw): string; switchLocaleRoute(fromLocale: string, toLocale: string, route: RouteLocationResolvedGeneric | RouteLocationNamedRaw, i18nRouteParams: I18nRouteParams): RouteLocationRaw; private resolveParams; private handlePrefixStrategy; private createLocalizedRoute; getLocalizedRoute(to: RouteLocationResolvedGeneric | RouteLocationAsPathGeneric | RouteLocationNamedRaw | string, route: RouteLocationNormalizedLoaded, locale?: string): RouteLocationResolved; updateCookies(toLocale: string): void; getCurrentRoute(): RouteLocationNormalizedLoaded; private resolveRouteWithStrategy; switchLocaleLogic(toLocale: string, i18nRouteParams: I18nRouteParams, to?: RouteLocationNamedRaw | RouteLocationResolvedGeneric | string): string | false | void | import('vue-router').RouteLocationAsRelativeGeneric | RouteLocationAsPathGeneric | Promise; resolveLocalizedRoute(to: RouteLocationNamedRaw | RouteLocationAsPathGeneric | string, locale?: string): RouteLocationResolved; } export {};