import { type LinkLocale } from './localize-utils';
/**
* Returns a function that localizes hrefs the same way `gt-next/link` does,
* for navigation that does not render a ``, such as `router.push()`.
*
* 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.
*
* @example
* ```tsx
* 'use client';
*
* import { useRouter } from 'next/navigation';
* import { useLocalizeHref } from 'gt-next/link';
*
* export function Checkout() {
* const router = useRouter();
* const localizeHref = useLocalizeHref();
* return (
*
* );
* }
* ```
*
* @returns A function taking an href and an optional locale (a locale string,
* or `false` to leave the href unchanged) that returns the localized href.
*/
export declare function useLocalizeHref(): (href: string, locale?: LinkLocale) => string;
//# sourceMappingURL=useLocalizeHref.d.ts.map