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

type AppRoutes = "/" | "/about" | "/admin" | "/admin/admissions" | "/admin/admissions/[id]" | "/admin/blogs" | "/admin/blogs/[id]" | "/admin/blogs/new" | "/admin/contacts" | "/admin/contacts/[id]" | "/admin/homepage" | "/admin/homepage/about" | "/admin/homepage/blogs" | "/admin/homepage/footer" | "/admin/homepage/ged" | "/admin/homepage/header" | "/admin/homepage/hero" | "/admin/homepage/partners" | "/admin/homepage/programs" | "/admin/login" | "/admin/programs" | "/admin/programs/[id]" | "/admin/programs/new" | "/admin/settings" | "/admissions" | "/contact" | "/programs"
type AppRouteHandlerRoutes = "/media/[id]"
type PageRoutes = never
type LayoutRoutes = "/" | "/admin"
type RedirectRoutes = never
type RewriteRoutes = never
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes


interface ParamMap {
  "/": {}
  "/about": {}
  "/admin": {}
  "/admin/admissions": {}
  "/admin/admissions/[id]": { "id": string; }
  "/admin/blogs": {}
  "/admin/blogs/[id]": { "id": string; }
  "/admin/blogs/new": {}
  "/admin/contacts": {}
  "/admin/contacts/[id]": { "id": string; }
  "/admin/homepage": {}
  "/admin/homepage/about": {}
  "/admin/homepage/blogs": {}
  "/admin/homepage/footer": {}
  "/admin/homepage/ged": {}
  "/admin/homepage/header": {}
  "/admin/homepage/hero": {}
  "/admin/homepage/partners": {}
  "/admin/homepage/programs": {}
  "/admin/login": {}
  "/admin/programs": {}
  "/admin/programs/[id]": { "id": string; }
  "/admin/programs/new": {}
  "/admin/settings": {}
  "/admissions": {}
  "/contact": {}
  "/media/[id]": { "id": string; }
  "/programs": {}
}


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

interface LayoutSlotMap {
  "/": never
  "/admin": 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]>
  }
}
