import { type TInternalRuntimeContext } from '@modern-js/runtime/context'; export declare const getPathname: (context: TInternalRuntimeContext) => string; export declare const getEntryPath: () => string; /** * Helper function to get language from current pathname * @param pathname - The current pathname * @param languages - Array of supported languages * @param fallbackLanguage - Fallback language when no language is detected * @returns The detected language or fallback language */ export declare const getLanguageFromPath: (pathname: string, languages: string[], fallbackLanguage: string) => string; /** * Helper function to build localized URL * @param pathname - The current pathname * @param language - The target language * @param languages - Array of supported languages * @returns The localized URL path */ export declare const buildLocalizedUrl: (pathname: string, language: string, languages: string[]) => string; export declare const detectLanguageFromPath: (pathname: string, languages: string[], localePathRedirect: boolean) => { detected: boolean; language?: string; }; /** * Check if the given pathname should ignore automatic locale redirect */ export declare const shouldIgnoreRedirect: (pathname: string, languages: string[], ignoreRedirectRoutes?: string[] | ((pathname: string) => boolean)) => boolean; export declare const useRouterHooks: () => { navigate: any; location: any; params: any; hasRouter: boolean; };