// P8.2d (KAR-987 §24 "E2E") — Vite alias stub for `next/navigation`.
//
// Component Testing mounts the editor OUTSIDE the Next.js App Router (no
// server, no route tree — see e2e-ct/README-scope note in the builder
// report). `next/navigation`'s real module hard-depends on that router
// context and throws when used outside it, so every CT spec needs a stand-in
// — same reason the EXISTING jsdom suite (components/wertstrom/__tests__/
// vsm-editor.test.tsx) `vi.mock`s this exact module. This file is the Vite
// (`resolve.alias` in playwright-ct.config.ts) equivalent of that mock.
//
// Scope: only the hooks actually reached from the VsmEditor mount tree
// (verified by grep across components/wertstrom/*.tsx before writing this
// file — useRouter().push/refresh are the only two methods any callsite
// invokes). usePathname/useSearchParams/useParams are stubbed too, cheaply,
// for robustness against a callsite this grep missed — never exercised by
// any P8.2d spec.
export function useRouter() {
  return {
    push: () => {},
    replace: () => {},
    back: () => {},
    forward: () => {},
    refresh: () => {},
    prefetch: () => {},
  }
}

export function usePathname(): string {
  return ''
}

export function useSearchParams(): URLSearchParams {
  return new URLSearchParams()
}

export function useParams(): Record<string, string | string[]> {
  return {}
}
