declare module 'react-router-dom' {
  import type { ReactNode } from 'react'

  export function BrowserRouter(props: { children?: ReactNode }): JSX.Element
  export function Routes(props: { children?: ReactNode }): JSX.Element
  export function Route(props: Record<string, unknown>): JSX.Element | null
  export function Outlet(): JSX.Element | null
  export function NavLink(props: Record<string, unknown>): JSX.Element
  /** Zjednodušená deklarace – celý modul je zde ručně kvůli buildu bez @types balíčku. */
  export function useNavigate(): (to: string) => void
}
