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

type AppRoutes = "/" | "/activity" | "/analytics" | "/chat" | "/connections" | "/connections/calendar" | "/connections/journal" | "/connections/knowledge" | "/connections/mail" | "/connections/mcp" | "/connections/messaging" | "/connections/repositories" | "/connections/routines" | "/conversations" | "/conversations/[id]" | "/docs/[[...slug]]" | "/finance" | "/git" | "/health" | "/knowledge" | "/reading" | "/schedule" | "/settings" | "/settings/advanced" | "/settings/backends" | "/settings/commands" | "/settings/connections" | "/settings/journal" | "/settings/management" | "/settings/messaging" | "/settings/models" | "/settings/processes" | "/settings/routines" | "/settings/schedule" | "/settings/self-learning" | "/settings/wiki" | "/settings/wiki/timeline" | "/setup" | "/trip" | "/wiki" | "/wiki/timeline"
type AppRouteHandlerRoutes = "/api/[...path]"
type PageRoutes = never
type LayoutRoutes = "/" | "/connections" | "/settings"
type RedirectRoutes = "/approvals" | "/conversations" | "/cost" | "/logs" | "/metrics"
type RewriteRoutes = never
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes


interface ParamMap {
  "/": {}
  "/activity": {}
  "/analytics": {}
  "/api/[...path]": { "path": string[]; }
  "/approvals": {}
  "/chat": {}
  "/connections": {}
  "/connections/calendar": {}
  "/connections/journal": {}
  "/connections/knowledge": {}
  "/connections/mail": {}
  "/connections/mcp": {}
  "/connections/messaging": {}
  "/connections/repositories": {}
  "/connections/routines": {}
  "/conversations": {}
  "/conversations/[id]": { "id": string; }
  "/cost": {}
  "/docs/[[...slug]]": { "slug"?: string[]; }
  "/finance": {}
  "/git": {}
  "/health": {}
  "/knowledge": {}
  "/logs": {}
  "/metrics": {}
  "/reading": {}
  "/schedule": {}
  "/settings": {}
  "/settings/advanced": {}
  "/settings/backends": {}
  "/settings/commands": {}
  "/settings/connections": {}
  "/settings/journal": {}
  "/settings/management": {}
  "/settings/messaging": {}
  "/settings/models": {}
  "/settings/processes": {}
  "/settings/routines": {}
  "/settings/schedule": {}
  "/settings/self-learning": {}
  "/settings/wiki": {}
  "/settings/wiki/timeline": {}
  "/setup": {}
  "/trip": {}
  "/wiki": {}
  "/wiki/timeline": {}
}


export type ParamsOf<Route extends Routes> = ParamMap[Route]

interface LayoutSlotMap {
  "/": never
  "/connections": never
  "/settings": 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]>
  }
}
