/// import React from 'react'; import { AllLocales, Pathnames } from '../../shared/types'; import { HrefOrHrefWithParams } from '../utils'; export default function createLocalizedPathnamesNavigation>({ locales, pathnames }: { locales: Locales; pathnames: Pathnames; }): { Link: ({ href, locale, ...rest }: Omit, keyof { href: string | import("url").UrlObject; as?: (string | import("url").UrlObject) | undefined; replace?: boolean | undefined; scroll?: boolean | undefined; shallow?: boolean | undefined; passHref?: boolean | undefined; prefetch?: boolean | undefined; locale?: string | false | undefined; legacyBehavior?: boolean | undefined; onMouseEnter?: React.MouseEventHandler | undefined; onTouchStart?: React.TouchEventHandler | undefined; onClick?: React.MouseEventHandler | undefined; }> & { href: string | import("url").UrlObject; as?: (string | import("url").UrlObject) | undefined; replace?: boolean | undefined; scroll?: boolean | undefined; shallow?: boolean | undefined; passHref?: boolean | undefined; prefetch?: boolean | undefined; locale?: string | false | undefined; legacyBehavior?: boolean | undefined; onMouseEnter?: React.MouseEventHandler | undefined; onTouchStart?: React.TouchEventHandler | undefined; onClick?: React.MouseEventHandler | undefined; } & { children?: React.ReactNode; } & React.RefAttributes, "locale"> & { locale: string; }, "ref"> & React.RefAttributes, "locale"> & { locale?: string | undefined; }, "name" | "href"> & { href: Pathname extends `${string}[[...${string}` ? Pathname | ({ pathname: Pathname; params?: import("../StrictParams").default | undefined; } & Omit) : Pathname extends `${string}[${string}` ? { pathname: Pathname; params: import("../StrictParams").default; } & Omit : Pathname | ({ pathname: Pathname; } & Omit); locale?: Locales[number] | undefined; }) => JSX.Element; redirect: (href: HrefOrHrefWithParams, type?: import("next/navigation").RedirectType | undefined) => never; getPathname: ({ href, locale }: { locale: Locales[number]; href: HrefOrHrefWithParams; }) => string; usePathname: () => never; useRouter: () => never; };