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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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





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