import { AllLocales } from '../shared/types'; type IntlNavigateOptions = { locale?: Locales[number]; }; /** * Returns a wrapped instance of `useRouter` from `next/navigation` that * will automatically localize the `href` parameters it receives. * * @example * ```tsx * 'use client'; * * import {useRouter} from 'next-intl/client'; * * const router = useRouter(); * * // When the user is on `/en`, the router will navigate to `/en/about` * router.push('/about'); * * // Optionally, you can switch the locale by passing the second argument * router.push('/about', {locale: 'de'}); * ``` */ export default function useBaseRouter(): { push(href: string, options?: (import("next/dist/shared/lib/app-router-context.shared-runtime").NavigateOptions & IntlNavigateOptions) | undefined): void; replace(href: string, options?: (import("next/dist/shared/lib/app-router-context.shared-runtime").NavigateOptions & IntlNavigateOptions) | undefined): void; prefetch(href: string, options?: (import("next/dist/shared/lib/app-router-context.shared-runtime").PrefetchOptions & IntlNavigateOptions) | undefined): void; back(): void; forward(): void; refresh(): void; }; export {};