type NextNavigation = typeof import('next/navigation.js'); type SearchParamsInit = string | URLSearchParams | undefined; /** * Pass to `vi.mock('next/navigation', () => navMockModule)`. Hooks read the mutable state lazily, * so changes made between tests apply on the next render. Import it before the component under * test so the factory is initialized when the mock is evaluated. */ export declare const navMockModule: NextNavigation; /** * Control object for the shared `navMockModule` singleton: repeated calls share spies and state. * Call `reset()` in `beforeEach`. */ export declare function createNavMock(): { push: import("vitest").Mock<(...args: unknown[]) => unknown>; replace: import("vitest").Mock<(...args: unknown[]) => unknown>; refresh: import("vitest").Mock<(...args: unknown[]) => unknown>; back: import("vitest").Mock<(...args: unknown[]) => unknown>; forward: import("vitest").Mock<(...args: unknown[]) => unknown>; prefetch: import("vitest").Mock<(...args: unknown[]) => unknown>; /** Accepts the same init forms as `new URLSearchParams()`; `undefined` clears it. */ setSearchParams(init?: SearchParamsInit): void; setPathname(pathname: string): void; setParams(params: Record): void; /** Restores empty search params, pathname `/`, empty params, and clears spy history. */ reset(): void; }; export {};