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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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





// Validate ../../src/app/connections/layout.tsx
{
  type __IsExpected<Specific extends LayoutConfig<"/connections">> = Specific
  const handler = {} as typeof import("../../src/app/connections/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
}

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