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

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

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

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

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

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

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

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

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

// Validate ../../../src/app/docs/[id]/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/docs/[id]">> = Specific
  const handler = {} as typeof import("../../../src/app/docs/[id]/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/new/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/new">> = Specific
  const handler = {} as typeof import("../../../src/app/new/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/review/page.tsx
{
  type __IsExpected<Specific extends AppPageConfig<"/review">> = Specific
  const handler = {} as typeof import("../../../src/app/review/page.js")
  type __Check = __IsExpected<typeof handler>
  // @ts-ignore
  type __Unused = __Check
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// Validate ../../../src/app/api/wiki/insights/[id]/review/route.ts
{
  type __IsExpected<Specific extends RouteHandlerConfig<"/api/wiki/insights/[id]/review">> = Specific
  const handler = {} as typeof import("../../../src/app/api/wiki/insights/[id]/review/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
}
