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

type AppRoutes = "/" | "/invitations/[token]" | "/login" | "/register" | "/reset/confirm" | "/reset/request" | "/trahs/[trahId]" | "/trahs/[trahId]/persons/[personId]/claim" | "/trahs/[trahId]/persons/[personId]/edit" | "/trahs/[trahId]/persons/[personId]/history" | "/trahs/[trahId]/persons/[personId]/profile" | "/trahs/[trahId]/persons/new" | "/trahs/[trahId]/relationship-finder" | "/trahs/[trahId]/search" | "/trahs/[trahId]/tree" | "/trahs/new"
type AppRouteHandlerRoutes = "/api/auth/[...nextauth]" | "/api/auth/register" | "/api/auth/reset/confirm" | "/api/auth/reset/request" | "/api/invitations/[token]/accept" | "/api/trahs" | "/api/trahs/[trahId]/invite" | "/api/trahs/[trahId]/members/[membershipId]" | "/api/trahs/[trahId]/persons" | "/api/trahs/[trahId]/persons/[personId]/claim" | "/api/trahs/[trahId]/persons/[personId]/contacts" | "/api/trahs/[trahId]/persons/[personId]/facts" | "/api/trahs/[trahId]/persons/[personId]/history" | "/api/trahs/[trahId]/persons/[personId]/residences" | "/api/trahs/[trahId]/relationship-finder" | "/api/trahs/[trahId]/relationships" | "/api/trahs/[trahId]/relationships/[relationshipId]" | "/api/trahs/[trahId]/search" | "/api/trahs/[trahId]/tree"
type PageRoutes = never
type LayoutRoutes = "/"
type RedirectRoutes = never
type RewriteRoutes = never
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes


interface ParamMap {
  "/": {}
  "/api/auth/[...nextauth]": { "nextauth": string[]; }
  "/api/auth/register": {}
  "/api/auth/reset/confirm": {}
  "/api/auth/reset/request": {}
  "/api/invitations/[token]/accept": { "token": string; }
  "/api/trahs": {}
  "/api/trahs/[trahId]/invite": { "trahId": string; }
  "/api/trahs/[trahId]/members/[membershipId]": { "trahId": string; "membershipId": string; }
  "/api/trahs/[trahId]/persons": { "trahId": string; }
  "/api/trahs/[trahId]/persons/[personId]/claim": { "trahId": string; "personId": string; }
  "/api/trahs/[trahId]/persons/[personId]/contacts": { "trahId": string; "personId": string; }
  "/api/trahs/[trahId]/persons/[personId]/facts": { "trahId": string; "personId": string; }
  "/api/trahs/[trahId]/persons/[personId]/history": { "trahId": string; "personId": string; }
  "/api/trahs/[trahId]/persons/[personId]/residences": { "trahId": string; "personId": string; }
  "/api/trahs/[trahId]/relationship-finder": { "trahId": string; }
  "/api/trahs/[trahId]/relationships": { "trahId": string; }
  "/api/trahs/[trahId]/relationships/[relationshipId]": { "trahId": string; "relationshipId": string; }
  "/api/trahs/[trahId]/search": { "trahId": string; }
  "/api/trahs/[trahId]/tree": { "trahId": string; }
  "/invitations/[token]": { "token": string; }
  "/login": {}
  "/register": {}
  "/reset/confirm": {}
  "/reset/request": {}
  "/trahs/[trahId]": { "trahId": string; }
  "/trahs/[trahId]/persons/[personId]/claim": { "trahId": string; "personId": string; }
  "/trahs/[trahId]/persons/[personId]/edit": { "trahId": string; "personId": string; }
  "/trahs/[trahId]/persons/[personId]/history": { "trahId": string; "personId": string; }
  "/trahs/[trahId]/persons/[personId]/profile": { "trahId": string; "personId": string; }
  "/trahs/[trahId]/persons/new": { "trahId": string; }
  "/trahs/[trahId]/relationship-finder": { "trahId": string; }
  "/trahs/[trahId]/search": { "trahId": string; }
  "/trahs/[trahId]/tree": { "trahId": string; }
  "/trahs/new": {}
}


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

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