// This file is generated automatically by Next.js
// Do not edit this file manually
// This file validates that all pages and layouts export the correct types

import type { AppRoutes, LayoutRoutes, ParamMap, AppRouteHandlerRoutes } from "./routes.js"
import type { ResolvingMetadata, ResolvingViewport } from "next/types.js"
import type { NextRequest } from 'next/server.js'

type AppPageConfig<Route extends AppRoutes = AppRoutes> = {
  default: React.ComponentType<{ params: Promise<ParamMap[Route]> } & any> | ((props: { params: Promise<ParamMap[Route]> } & any) => React.ReactNode | Promise<React.ReactNode> | never | void | Promise<void>)
  generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise<any[]> | any[]
  generateMetadata?: (
    props: { params: Promise<ParamMap[Route]> } & any,
    parent: ResolvingMetadata
  ) => Promise<any> | any
  generateViewport?: (
    props: { params: Promise<ParamMap[Route]> } & any,
    parent: ResolvingViewport
  ) => Promise<any> | any
  metadata?: any
  viewport?: any
}

type LayoutConfig<Route extends LayoutRoutes = LayoutRoutes> = {
  default: React.ComponentType<LayoutProps<Route>> | ((props: LayoutProps<Route>) => React.ReactNode | Promise<React.ReactNode> | never | void | Promise<void>)
  generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise<any[]> | any[]
  generateMetadata?: (
    props: { params: Promise<ParamMap[Route]> } & any,
    parent: ResolvingMetadata
  ) => Promise<any> | any
  generateViewport?: (
    props: { params: Promise<ParamMap[Route]> } & any,
    parent: ResolvingViewport
  ) => Promise<any> | any
  metadata?: any
  viewport?: any
}

type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRoutes> = {
  GET?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
  POST?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
  PUT?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
  PATCH?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
  DELETE?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
  HEAD?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
  OPTIONS?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
}


// Validate ../../src/app/admin/about/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/about">> = Specific
  const handler = {} as typeof import("../../src/app/admin/about/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/about/partners/[id]/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/about/partners/[id]">> = Specific
  const handler = {} as typeof import("../../src/app/admin/about/partners/[id]/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/about/partners/new/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/about/partners/new">> = Specific
  const handler = {} as typeof import("../../src/app/admin/about/partners/new/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/about/sections/[sectionId]/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/about/sections/[sectionId]">> = Specific
  const handler = {} as typeof import("../../src/app/admin/about/sections/[sectionId]/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/about/sections/new/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/about/sections/new">> = Specific
  const handler = {} as typeof import("../../src/app/admin/about/sections/new/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/about/settings/[key]/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/about/settings/[key]">> = Specific
  const handler = {} as typeof import("../../src/app/admin/about/settings/[key]/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/about/testimonials/[id]/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/about/testimonials/[id]">> = Specific
  const handler = {} as typeof import("../../src/app/admin/about/testimonials/[id]/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/about/testimonials/new/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/about/testimonials/new">> = Specific
  const handler = {} as typeof import("../../src/app/admin/about/testimonials/new/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/books/[bookId]/edit/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/books/[bookId]/edit">> = Specific
  const handler = {} as typeof import("../../src/app/admin/books/[bookId]/edit/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/books/[bookId]/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/books/[bookId]">> = Specific
  const handler = {} as typeof import("../../src/app/admin/books/[bookId]/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/books/[bookId]/sheets/[sheet]/guide-pdf/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/books/[bookId]/sheets/[sheet]/guide-pdf">> = Specific
  const handler = {} as typeof import("../../src/app/admin/books/[bookId]/sheets/[sheet]/guide-pdf/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/books/[bookId]/sheets/[sheet]/guide-text/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/books/[bookId]/sheets/[sheet]/guide-text">> = Specific
  const handler = {} as typeof import("../../src/app/admin/books/[bookId]/sheets/[sheet]/guide-text/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/books/[bookId]/sheets/[sheet]/main-pdf/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/books/[bookId]/sheets/[sheet]/main-pdf">> = Specific
  const handler = {} as typeof import("../../src/app/admin/books/[bookId]/sheets/[sheet]/main-pdf/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/books/[bookId]/sheets/[sheet]/main-text/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/books/[bookId]/sheets/[sheet]/main-text">> = Specific
  const handler = {} as typeof import("../../src/app/admin/books/[bookId]/sheets/[sheet]/main-text/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/books/[bookId]/sheets/[sheet]/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/books/[bookId]/sheets/[sheet]">> = Specific
  const handler = {} as typeof import("../../src/app/admin/books/[bookId]/sheets/[sheet]/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/books/[bookId]/upload-volume/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/books/[bookId]/upload-volume">> = Specific
  const handler = {} as typeof import("../../src/app/admin/books/[bookId]/upload-volume/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/books/new-book/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/books/new-book">> = Specific
  const handler = {} as typeof import("../../src/app/admin/books/new-book/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/books/new-menu/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/books/new-menu">> = Specific
  const handler = {} as typeof import("../../src/app/admin/books/new-menu/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/books/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/books">> = Specific
  const handler = {} as typeof import("../../src/app/admin/books/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/council/[id]/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/council/[id]">> = Specific
  const handler = {} as typeof import("../../src/app/admin/council/[id]/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/council/new/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/council/new">> = Specific
  const handler = {} as typeof import("../../src/app/admin/council/new/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/council/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/council">> = Specific
  const handler = {} as typeof import("../../src/app/admin/council/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/directors/[id]/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/directors/[id]">> = Specific
  const handler = {} as typeof import("../../src/app/admin/directors/[id]/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/directors/new/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/directors/new">> = Specific
  const handler = {} as typeof import("../../src/app/admin/directors/new/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/directors/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/directors">> = Specific
  const handler = {} as typeof import("../../src/app/admin/directors/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/guides/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/guides">> = Specific
  const handler = {} as typeof import("../../src/app/admin/guides/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/admin/settings/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/admin/settings">> = Specific
  const handler = {} as typeof import("../../src/app/admin/settings/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/login/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/login">> = Specific
  const handler = {} as typeof import("../../src/app/login/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/">> = Specific
  const handler = {} as typeof import("../../src/app/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/api-files/[...path]/route.ts
{
  type __IsExpected<Specific extends RouteHandlerConfig<"/api-files/[...path]">> = Specific
  const handler = {} as typeof import("../../src/app/api-files/[...path]/route.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}





// Validate ../../src/app/admin/layout.tsx
{
  type __IsExpected<Specific extends LayoutConfig<"/admin">> = Specific
  const handler = {} as typeof import("../../src/app/admin/layout.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

// Validate ../../src/app/layout.tsx
{
  type __IsExpected<Specific extends LayoutConfig<"/">> = Specific
  const handler = {} as typeof import("../../src/app/layout.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}
