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

type AppRoutes = "/cabang" | "/daftar-pesanan" | "/daftar-pesanan/[id]" | "/dashboard" | "/kategori-meja" | "/kategori-menu" | "/laporan/jenis-order" | "/laporan/metode-pembayaran" | "/laporan/pendapatan-stand" | "/laporan/penjualan-per-kategori" | "/laporan/produk-terlaris" | "/login" | "/management-user" | "/menu-makanan" | "/metode-pembayaran" | "/perangkat" | "/pin" | "/printer" | "/satuan-menu" | "/semua-meja" | "/stand"
type PageRoutes = never
type LayoutRoutes = "/"
type RedirectRoutes = never
type RewriteRoutes = "/admin/[[...path]]" | "/auth/[[...path]]" | "/upload/[[...path]]"
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes


interface ParamMap {
  "/": {}
  "/admin/[[...path]]": { "path"?: string[]; }
  "/auth/[[...path]]": { "path"?: string[]; }
  "/cabang": {}
  "/daftar-pesanan": {}
  "/daftar-pesanan/[id]": { "id": string; }
  "/dashboard": {}
  "/kategori-meja": {}
  "/kategori-menu": {}
  "/laporan/jenis-order": {}
  "/laporan/metode-pembayaran": {}
  "/laporan/pendapatan-stand": {}
  "/laporan/penjualan-per-kategori": {}
  "/laporan/produk-terlaris": {}
  "/login": {}
  "/management-user": {}
  "/menu-makanan": {}
  "/metode-pembayaran": {}
  "/perangkat": {}
  "/pin": {}
  "/printer": {}
  "/satuan-menu": {}
  "/semua-meja": {}
  "/stand": {}
  "/upload/[[...path]]": { "path"?: string[]; }
}


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

interface LayoutSlotMap {
  "/": never
}


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

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