// This file is generated automatically by Next.js
// Do not edit this file manually

type AppRoutes = "/" | "/afrolife" | "/afrolife/[id]" | "/annuaire" | "/annuaire/[id]" | "/blog" | "/blog/[id]" | "/cgu" | "/cgv" | "/dashboard" | "/login" | "/register" | "/subscription" | "/suspended"
type AppRouteHandlerRoutes = "/api/admin/reports" | "/api/admin/reports/[id]" | "/api/analytics" | "/api/analytics/businesses/[id]" | "/api/auth/login" | "/api/auth/register" | "/api/blog" | "/api/blog/[id]" | "/api/businesses" | "/api/businesses/[id]" | "/api/businesses/[id]/view" | "/api/businesses/me" | "/api/conversations" | "/api/conversations/[id]" | "/api/conversations/[id]/archive" | "/api/gemini" | "/api/interviews" | "/api/interviews/[id]" | "/api/messages" | "/api/messages/[id]/report" | "/api/messages/unread" | "/api/offers" | "/api/offers/[id]" | "/api/users" | "/api/users/me" | "/api/users/profile"
type PageRoutes = never
type LayoutRoutes = "/"
type RedirectRoutes = never
type RewriteRoutes = never
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes


interface ParamMap {
  "/": {}
  "/afrolife": {}
  "/afrolife/[id]": { "id": string; }
  "/annuaire": {}
  "/annuaire/[id]": { "id": string; }
  "/api/admin/reports": {}
  "/api/admin/reports/[id]": { "id": string; }
  "/api/analytics": {}
  "/api/analytics/businesses/[id]": { "id": string; }
  "/api/auth/login": {}
  "/api/auth/register": {}
  "/api/blog": {}
  "/api/blog/[id]": { "id": string; }
  "/api/businesses": {}
  "/api/businesses/[id]": { "id": string; }
  "/api/businesses/[id]/view": { "id": string; }
  "/api/businesses/me": {}
  "/api/conversations": {}
  "/api/conversations/[id]": { "id": string; }
  "/api/conversations/[id]/archive": { "id": string; }
  "/api/gemini": {}
  "/api/interviews": {}
  "/api/interviews/[id]": { "id": string; }
  "/api/messages": {}
  "/api/messages/[id]/report": { "id": string; }
  "/api/messages/unread": {}
  "/api/offers": {}
  "/api/offers/[id]": { "id": string; }
  "/api/users": {}
  "/api/users/me": {}
  "/api/users/profile": {}
  "/blog": {}
  "/blog/[id]": { "id": string; }
  "/cgu": {}
  "/cgv": {}
  "/dashboard": {}
  "/login": {}
  "/register": {}
  "/subscription": {}
  "/suspended": {}
}


export type ParamsOf<Route extends Routes> = ParamMap[Route]

interface LayoutSlotMap {
  "/": never
}


export type { AppRoutes, PageRoutes, LayoutRoutes, RedirectRoutes, RewriteRoutes, ParamMap, AppRouteHandlerRoutes }

declare global {
  /**
   * Props for Next.js App Router page components
   * @example
   * ```tsx
   * export default function Page(props: PageProps<'/blog/[slug]'>) {
   *   const { slug } = await props.params
   *   return <div>Blog post: {slug}</div>
   * }
   * ```
   */
  interface PageProps<AppRoute extends AppRoutes> {
    params: Promise<ParamMap[AppRoute]>
    searchParams: Promise<Record<string, string | string[] | undefined>>
  }

  /**
   * Props for Next.js App Router layout components
   * @example
   * ```tsx
   * export default function Layout(props: LayoutProps<'/dashboard'>) {
   *   return <div>{props.children}</div>
   * }
   * ```
   */
  type LayoutProps<LayoutRoute extends LayoutRoutes> = {
    params: Promise<ParamMap[LayoutRoute]>
    children: React.ReactNode
  } & {
    [K in LayoutSlotMap[LayoutRoute]]: React.ReactNode
  }

  /**
   * Context for Next.js App Router route handlers
   * @example
   * ```tsx
   * export async function GET(request: NextRequest, context: RouteContext<'/api/users/[id]'>) {
   *   const { id } = await context.params
   *   return Response.json({ id })
   * }
   * ```
   */
  interface RouteContext<AppRouteHandlerRoute extends AppRouteHandlerRoutes> {
    params: Promise<ParamMap[AppRouteHandlerRoute]>
  }
}
