export declare function stripLocalePrefix(path: string, locales: string[]): { locale: string | null, path: string }; export declare function localizePath(path: string, locale: string, defaultLocale: string): string; /** * Build a redirect Response that sets the `locale` cookie and sends the * visitor to the equivalent path in the requested locale (STX-style). */ export declare function createLocaleSwitchResponse(request: Request, localeCode: string, config: LocaleSwitchConfig): Response; /** * Locale switch redirect — mirrors STX `buildLangPickerScript` path logic * (`//…` prefixes) so cookie-based fallbacks and `/locale/{code}` * redirects stay consistent with stx-serve i18n routing. */ export declare interface LocaleSwitchConfig { locales: string[] defaultLocale: string }