import type NextLink from 'next/link'; import type { ComponentProps } from 'react'; /** A locale to prefix, `undefined` for the current locale, or `false` for none. */ export type LinkLocale = ComponentProps['locale']; /** * Localizes an href the way `gt-next/link` does. * * Internal paths are prefixed with the target locale, except default-locale * paths when `prefixDefaultLocale` is `false` (an explicit default `locale` * keeps its prefix while `enableSmartRouting` is on). Localized path aliases * and locale availability are still resolved by the middleware. External URLs * and paths that don't match `pathRegex` are never prefixed. */ export declare function localizeHref(href: string, locale: LinkLocale, currentLocale: string, defaultLocale: string): string; //# sourceMappingURL=localize-utils.d.ts.map