import NextLink from 'next/link'; import { type ComponentProps } from 'react'; export type LinkProps = ComponentProps; /** * Locale-aware wrapper around Next.js's `` component. * * Internal hrefs are prefixed with the current GT locale by default. Pass a * locale string to use a specific locale, or pass `locale={false}` to leave the * href unchanged. External URLs and paths that don't match `pathRegex` are * never prefixed. * * With `prefixDefaultLocale: false` (the default), current default-locale links * are left unprefixed. Explicit default-locale links are left unprefixed only * when `enableSmartRouting` is `false`. Set these options in `withGTConfig()` * so Link can read them. Use `useLocalizeHref()` to localize hrefs outside Link. * * @example * ```tsx * import Link from 'gt-next/link'; * * export function Navigation() { * return Home; // /fr/home, or /home for the default locale * } * ``` * * @example * ```tsx * import Link from 'gt-next/link'; * * export function LocaleSwitcher() { * return French; // /fr/home * } * ``` * * @example * ```tsx * import Link from 'gt-next/link'; * * export function UnlocalizedLink() { * return Legal; // /legal * } * ``` * * @example * ```tsx * import Link from 'gt-next/link'; * * export function ExternalLink() { * return Example; // https://example.com * } * ``` * * @see https://nextjs.org/docs/app/api-reference/components/link * @param href - The destination URL or URL object. Internal paths are localized. * @param locale - Locale to prefix, or `false` to disable GT locale prefixing. * @returns The rendered Next.js link. */ export declare const Link: import("react").ForwardRefExoticComponent; //# sourceMappingURL=Link.d.ts.map