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

type AppRoutes = "/" | "/admin/about" | "/admin/about/partners/[id]" | "/admin/about/partners/new" | "/admin/about/sections/[sectionId]" | "/admin/about/sections/new" | "/admin/about/settings/[key]" | "/admin/about/testimonials/[id]" | "/admin/about/testimonials/new" | "/admin/books" | "/admin/books/[bookId]" | "/admin/books/[bookId]/edit" | "/admin/books/[bookId]/sheets/[sheet]" | "/admin/books/[bookId]/sheets/[sheet]/guide-pdf" | "/admin/books/[bookId]/sheets/[sheet]/guide-text" | "/admin/books/[bookId]/sheets/[sheet]/main-pdf" | "/admin/books/[bookId]/sheets/[sheet]/main-text" | "/admin/books/[bookId]/upload-volume" | "/admin/books/new-book" | "/admin/books/new-menu" | "/admin/council" | "/admin/council/[id]" | "/admin/council/new" | "/admin/directors" | "/admin/directors/[id]" | "/admin/directors/new" | "/admin/guides" | "/admin/settings" | "/login"
type AppRouteHandlerRoutes = "/api-files/[...path]"
type PageRoutes = never
type LayoutRoutes = "/" | "/admin"
type RedirectRoutes = "/admin/login"
type RewriteRoutes = "/api-files/[[...path]]"
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes


interface ParamMap {
  "/": {}
  "/admin": {}
  "/admin/about": {}
  "/admin/about/partners/[id]": { "id": string; }
  "/admin/about/partners/new": {}
  "/admin/about/sections/[sectionId]": { "sectionId": string; }
  "/admin/about/sections/new": {}
  "/admin/about/settings/[key]": { "key": string; }
  "/admin/about/testimonials/[id]": { "id": string; }
  "/admin/about/testimonials/new": {}
  "/admin/books": {}
  "/admin/books/[bookId]": { "bookId": string; }
  "/admin/books/[bookId]/edit": { "bookId": string; }
  "/admin/books/[bookId]/sheets/[sheet]": { "bookId": string; "sheet": string; }
  "/admin/books/[bookId]/sheets/[sheet]/guide-pdf": { "bookId": string; "sheet": string; }
  "/admin/books/[bookId]/sheets/[sheet]/guide-text": { "bookId": string; "sheet": string; }
  "/admin/books/[bookId]/sheets/[sheet]/main-pdf": { "bookId": string; "sheet": string; }
  "/admin/books/[bookId]/sheets/[sheet]/main-text": { "bookId": string; "sheet": string; }
  "/admin/books/[bookId]/upload-volume": { "bookId": string; }
  "/admin/books/new-book": {}
  "/admin/books/new-menu": {}
  "/admin/council": {}
  "/admin/council/[id]": { "id": string; }
  "/admin/council/new": {}
  "/admin/directors": {}
  "/admin/directors/[id]": { "id": string; }
  "/admin/directors/new": {}
  "/admin/guides": {}
  "/admin/login": {}
  "/admin/settings": {}
  "/api-files/[...path]": { "path": string[]; }
  "/api-files/[[...path]]": { "path"?: string[]; }
  "/login": {}
}


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