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

type AppRoutes = "/" | "/addigy-devices" | "/config-enrichment-test" | "/configuration-items" | "/configuration-items/[id]" | "/setup"
type AppRouteHandlerRoutes = "/api/addigy-devices" | "/api/addigy-policies" | "/api/companies" | "/api/config-enrichment" | "/api/config-items/[id]/tickets" | "/api/configuration-items" | "/api/configuration-items/[id]" | "/api/contacts/[id]" | "/api/debug-auth" | "/api/health" | "/api/invoices/[id]/line-items" | "/api/picklists" | "/api/resources" | "/api/rmm-audit" | "/api/rmm-devices" | "/api/rmm-test" | "/api/tasks" | "/api/test-zones" | "/api/tickets" | "/api/tickets/[id]" | "/api/tickets/[id]/time-entries"
type PageRoutes = never
type LayoutRoutes = "/"
type RedirectRoutes = never
type RewriteRoutes = never
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes


interface ParamMap {
  "/": {}
  "/addigy-devices": {}
  "/api/addigy-devices": {}
  "/api/addigy-policies": {}
  "/api/companies": {}
  "/api/config-enrichment": {}
  "/api/config-items/[id]/tickets": { "id": string; }
  "/api/configuration-items": {}
  "/api/configuration-items/[id]": { "id": string; }
  "/api/contacts/[id]": { "id": string; }
  "/api/debug-auth": {}
  "/api/health": {}
  "/api/invoices/[id]/line-items": { "id": string; }
  "/api/picklists": {}
  "/api/resources": {}
  "/api/rmm-audit": {}
  "/api/rmm-devices": {}
  "/api/rmm-test": {}
  "/api/tasks": {}
  "/api/test-zones": {}
  "/api/tickets": {}
  "/api/tickets/[id]": { "id": string; }
  "/api/tickets/[id]/time-entries": { "id": string; }
  "/config-enrichment-test": {}
  "/configuration-items": {}
  "/configuration-items/[id]": { "id": string; }
  "/setup": {}
}


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]>
  }
}
