import { R as ReadonlyURLSearchParams } from './search-params-Dv6Cgp4X.cjs';

/** @deprecated This method will be removed in the next major release. */
declare function invokeUrl(): Promise<URL>;
/**
 * A [Server Component](https://nextjs.org/docs/app/building-your-application/rendering/server-components) method
 * that lets you read the current URL's pathname.
 *
 * @example
 * ```ts
 * import { pathname } from 'next-extra/pathname'
 *
 * export default async function Layout({ children }: Readonly<{ children: React.ReactNode }>) {
 *  const route = await pathname() // returns "/dashboard" on /dashboard?foo=bar
 *  // ...
 * }
 * ```
 */
declare function pathname(): Promise<string>;
/**
 * A [Server Component](https://nextjs.org/docs/app/building-your-application/rendering/server-components) method
 * that lets you *read* the current URL's search parameters.
 *
 * Learn more about [`URLSearchParams` on MDN](https://developer.mozilla.org/docs/Web/API/URLSearchParams)
 *
 * @example
 * ```ts
 * import { searchParams } from 'next-extra/pathname'
 *
 * export default async function Layout({ children }: Readonly<{ children: React.ReactNode }>) {
 *  const params = await searchParams()
 *  params.get('foo') // returns 'bar' when ?foo=bar
 *  // ...
 * }
 * ```
 */
declare function searchParams(): Promise<ReadonlyURLSearchParams>;

export { invokeUrl, pathname, searchParams };
