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

type AppRoutes = "/" | "/acara" | "/acara/[slug]" | "/admin" | "/admin/acara" | "/admin/acara/[slug]" | "/admin/artikel" | "/admin/awardee" | "/admin/bearr" | "/admin/berita" | "/admin/bidang" | "/admin/bidang/[slug]" | "/admin/galeri" | "/admin/kabinet" | "/admin/komentar" | "/admin/kurikulum" | "/admin/laporan-keuangan" | "/admin/laser-quota" | "/admin/parlemen" | "/admin/parlemen/produk-mumas" | "/admin/parlemen/profil" | "/admin/pengurus" | "/admin/prestasi" | "/admin/profil" | "/admin/rangers-talk" | "/admin/shortlink" | "/admin/ukk" | "/admin/ukk/[slug]" | "/artikel" | "/artikel/[slug]" | "/awardee" | "/awardee/[id]" | "/berita" | "/berita/[id]" | "/galeri" | "/galeri/[id]" | "/kabinet" | "/konten" | "/konten/bearr" | "/konten/kinetik" | "/konten/link-shortener" | "/laporan-keuangan" | "/laporan-keuangan/[id]" | "/login" | "/media" | "/parlemen" | "/prestasi" | "/prestasi/[id]" | "/profil" | "/program-kerja" | "/program-kerja/[slug]" | "/rangers-talk" | "/rangers-talk/[id]" | "/ukk" | "/ukk/[slug]"
type AppRouteHandlerRoutes = "/[slug]" | "/api/auth/[...nextauth]" | "/api/kill-processes" | "/api/list-processes" | "/api/test-db" | "/api/upload"
type PageRoutes = never
type LayoutRoutes = "/"
type RedirectRoutes = never
type RewriteRoutes = never
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes


interface ParamMap {
  "/": {}
  "/[slug]": { "slug": string; }
  "/acara": {}
  "/acara/[slug]": { "slug": string; }
  "/admin": {}
  "/admin/acara": {}
  "/admin/acara/[slug]": { "slug": string; }
  "/admin/artikel": {}
  "/admin/awardee": {}
  "/admin/bearr": {}
  "/admin/berita": {}
  "/admin/bidang": {}
  "/admin/bidang/[slug]": { "slug": string; }
  "/admin/galeri": {}
  "/admin/kabinet": {}
  "/admin/komentar": {}
  "/admin/kurikulum": {}
  "/admin/laporan-keuangan": {}
  "/admin/laser-quota": {}
  "/admin/parlemen": {}
  "/admin/parlemen/produk-mumas": {}
  "/admin/parlemen/profil": {}
  "/admin/pengurus": {}
  "/admin/prestasi": {}
  "/admin/profil": {}
  "/admin/rangers-talk": {}
  "/admin/shortlink": {}
  "/admin/ukk": {}
  "/admin/ukk/[slug]": { "slug": string; }
  "/api/auth/[...nextauth]": { "nextauth": string[]; }
  "/api/kill-processes": {}
  "/api/list-processes": {}
  "/api/test-db": {}
  "/api/upload": {}
  "/artikel": {}
  "/artikel/[slug]": { "slug": string; }
  "/awardee": {}
  "/awardee/[id]": { "id": string; }
  "/berita": {}
  "/berita/[id]": { "id": string; }
  "/galeri": {}
  "/galeri/[id]": { "id": string; }
  "/kabinet": {}
  "/konten": {}
  "/konten/bearr": {}
  "/konten/kinetik": {}
  "/konten/link-shortener": {}
  "/laporan-keuangan": {}
  "/laporan-keuangan/[id]": { "id": string; }
  "/login": {}
  "/media": {}
  "/parlemen": {}
  "/prestasi": {}
  "/prestasi/[id]": { "id": string; }
  "/profil": {}
  "/program-kerja": {}
  "/program-kerja/[slug]": { "slug": string; }
  "/rangers-talk": {}
  "/rangers-talk/[id]": { "id": string; }
  "/ukk": {}
  "/ukk/[slug]": { "slug": string; }
}


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]>
  }
}
