Rocky_Mountain_Vending/.pnpm-store/v10/files/1c/200f9ee65f39d1f85acf9206483b4813ab4537b644c0a4490c620080ed4e01634291b82e5110acb107959bfcfbd61652f1d927000f20a7754655ce7ec20475
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

50 lines
1.8 KiB
Text

import type { ReadonlyURLSearchParams } from 'next/navigation'
declare module 'next/navigation' {
/**
* Get a read-only URLSearchParams object. For example searchParams.get('foo') would return 'bar' when ?foo=bar
* Learn more about URLSearchParams here: https://developer.mozilla.org/docs/Web/API/URLSearchParams
*
* If used from `pages/`, the hook may return `null` when the router is not
* ready.
*/
export function useSearchParams(): ReadonlyURLSearchParams | null
/**
* Get the current pathname. For example, if the URL is
* https://example.com/foo?bar=baz, the pathname would be /foo.
*
* If the hook is accessed from `pages/`, the pathname may be `null` when the
* router is not ready.
*/
export function usePathname(): string | null
/**
* Get the current parameters. For example useParams() on /dashboard/[team]
* where pathname is /dashboard/nextjs would return { team: 'nextjs' }
*
* If used from `pages/`, the hook will return `null`.
*/
export function useParams<
T extends Record<string, string | string[]> = Record<
string,
string | string[]
>,
>(): T | null
/**
* A [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components) hook
* that lets you read the active route segments **below** the Layout it is called from.
*
* If used from `pages/`, the hook will return `null`.
*/
export function useSelectedLayoutSegments(): string[] | null
/**
* A [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components) hook
* that lets you read the active route segment **one level below** the Layout it is called from.
*
* If used from `pages/`, the hook will return `null`.
*/
export function useSelectedLayoutSegment(): string | null
}