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

type AppRoutes = "/" | "/ai-governance" | "/ai-operations" | "/alerts" | "/assets" | "/assets/[code]" | "/audit" | "/cascade" | "/command-center" | "/compare-futures" | "/control-room" | "/copilot" | "/counterfactual" | "/dashboard" | "/data-health" | "/decisions" | "/demo" | "/demo/immersive" | "/demo/live-grid" | "/digital-twin" | "/discovery" | "/evidence" | "/executive" | "/failure-dna" | "/forecast" | "/grid" | "/grid-physics" | "/hackathon" | "/incidents" | "/incidents/[code]" | "/integrations" | "/knowledge-graph" | "/learning" | "/live-grid" | "/login" | "/maintenance" | "/map" | "/models" | "/predictions" | "/predictions/[code]" | "/proofs" | "/proofs/[code]" | "/renewables" | "/reports" | "/resilience" | "/risk-hunter" | "/risk-radar" | "/roles" | "/scenarios" | "/self-healing" | "/sensors" | "/settings" | "/simulations" | "/time-machine" | "/trust" | "/users" | "/verification" | "/war-room" | "/why-nabdh"
type AppRouteHandlerRoutes = "/api/adversarial" | "/api/adversarial-twin" | "/api/agents" | "/api/agents/run" | "/api/alerts" | "/api/alerts/[id]" | "/api/approvals" | "/api/assets" | "/api/assets/[code]" | "/api/assets/[code]/readings" | "/api/audit" | "/api/auth/login" | "/api/auth/logout" | "/api/cascade/breakpoint" | "/api/cascade/simulate" | "/api/compare/futures" | "/api/copilot" | "/api/copilot/scenario" | "/api/counterfactual" | "/api/data-health" | "/api/decision-memory" | "/api/decisions" | "/api/decisions/[code]/proof" | "/api/decisions/[code]/replay" | "/api/decisions/similar" | "/api/demo" | "/api/digital-twin" | "/api/digital-twin/[code]" | "/api/digital-twin/[code]/cascade" | "/api/digital-twin/[code]/counterfactual" | "/api/digital-twin/[code]/deviations" | "/api/digital-twin/[code]/fidelity" | "/api/digital-twin/[code]/history" | "/api/digital-twin/[code]/resilience" | "/api/digital-twin/[code]/scenario" | "/api/digital-twin/[code]/simulate" | "/api/digital-twin/[code]/snapshot" | "/api/digital-twin/[code]/state" | "/api/digital-twin/[code]/time-machine" | "/api/digital-twin/[code]/topology" | "/api/discovery" | "/api/discovery/run" | "/api/evidence" | "/api/executive" | "/api/failure-dna" | "/api/failure-dna/[code]" | "/api/forecast/load" | "/api/forecast/renewable" | "/api/future-branches" | "/api/grid/balance" | "/api/grid/contingency" | "/api/grid/flow" | "/api/grid/map" | "/api/grid/stability" | "/api/grid/state-estimate" | "/api/grid/status" | "/api/grid/thermal" | "/api/grid/validate" | "/api/health" | "/api/incidents" | "/api/integrations" | "/api/integrations/[code]" | "/api/integrations/[code]/data-preview" | "/api/integrations/[code]/fault" | "/api/integrations/[code]/health" | "/api/integrations/[code]/mapping" | "/api/integrations/[code]/sync" | "/api/integrations/[code]/test" | "/api/integrations/readiness" | "/api/knowledge-graph" | "/api/learning" | "/api/live-grid" | "/api/live-grid/assets/[code]" | "/api/live-grid/assets/[code]/history" | "/api/live-grid/assets/[code]/telemetry" | "/api/live-grid/cascade" | "/api/live-grid/power-flow" | "/api/live-grid/predictions" | "/api/live-grid/scenes" | "/api/live-grid/simulate" | "/api/live-grid/state" | "/api/live-grid/time-machine" | "/api/live-grid/topology" | "/api/live-grid/trace" | "/api/maintenance" | "/api/models/drift" | "/api/notifications" | "/api/optimization" | "/api/orchestrator/analyze" | "/api/physics/envelopes" | "/api/physics/validate" | "/api/predictions" | "/api/predictions/[code]" | "/api/prevention-patterns" | "/api/proofs" | "/api/provenance/[code]" | "/api/recommendations" | "/api/recommendations/[id]" | "/api/resilience" | "/api/resilience/red-blue" | "/api/risk-hunter/discoveries" | "/api/risk-hunter/discoveries/[code]/prevent" | "/api/risk-hunter/run" | "/api/risk-hunter/runs/[code]" | "/api/root-cause" | "/api/scenarios" | "/api/scenarios/[id]" | "/api/search" | "/api/self-healing" | "/api/sensors" | "/api/sensors/[code]" | "/api/sensors/[code]/fault" | "/api/settings" | "/api/simulations" | "/api/simulations/[id]" | "/api/storage/dispatch" | "/api/strategies/pareto" | "/api/stream/grid" | "/api/stream/live-grid" | "/api/stress-test" | "/api/uncertainty" | "/api/users/[id]" | "/api/verification" | "/api/verification/[code]" | "/api/war-room" | "/api/weakest-link"
type PageRoutes = never
type LayoutRoutes = "/"
type RedirectRoutes = never
type RewriteRoutes = never
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes


interface ParamMap {
  "/": {}
  "/ai-governance": {}
  "/ai-operations": {}
  "/alerts": {}
  "/api/adversarial": {}
  "/api/adversarial-twin": {}
  "/api/agents": {}
  "/api/agents/run": {}
  "/api/alerts": {}
  "/api/alerts/[id]": { "id": string; }
  "/api/approvals": {}
  "/api/assets": {}
  "/api/assets/[code]": { "code": string; }
  "/api/assets/[code]/readings": { "code": string; }
  "/api/audit": {}
  "/api/auth/login": {}
  "/api/auth/logout": {}
  "/api/cascade/breakpoint": {}
  "/api/cascade/simulate": {}
  "/api/compare/futures": {}
  "/api/copilot": {}
  "/api/copilot/scenario": {}
  "/api/counterfactual": {}
  "/api/data-health": {}
  "/api/decision-memory": {}
  "/api/decisions": {}
  "/api/decisions/[code]/proof": { "code": string; }
  "/api/decisions/[code]/replay": { "code": string; }
  "/api/decisions/similar": {}
  "/api/demo": {}
  "/api/digital-twin": {}
  "/api/digital-twin/[code]": { "code": string; }
  "/api/digital-twin/[code]/cascade": { "code": string; }
  "/api/digital-twin/[code]/counterfactual": { "code": string; }
  "/api/digital-twin/[code]/deviations": { "code": string; }
  "/api/digital-twin/[code]/fidelity": { "code": string; }
  "/api/digital-twin/[code]/history": { "code": string; }
  "/api/digital-twin/[code]/resilience": { "code": string; }
  "/api/digital-twin/[code]/scenario": { "code": string; }
  "/api/digital-twin/[code]/simulate": { "code": string; }
  "/api/digital-twin/[code]/snapshot": { "code": string; }
  "/api/digital-twin/[code]/state": { "code": string; }
  "/api/digital-twin/[code]/time-machine": { "code": string; }
  "/api/digital-twin/[code]/topology": { "code": string; }
  "/api/discovery": {}
  "/api/discovery/run": {}
  "/api/evidence": {}
  "/api/executive": {}
  "/api/failure-dna": {}
  "/api/failure-dna/[code]": { "code": string; }
  "/api/forecast/load": {}
  "/api/forecast/renewable": {}
  "/api/future-branches": {}
  "/api/grid/balance": {}
  "/api/grid/contingency": {}
  "/api/grid/flow": {}
  "/api/grid/map": {}
  "/api/grid/stability": {}
  "/api/grid/state-estimate": {}
  "/api/grid/status": {}
  "/api/grid/thermal": {}
  "/api/grid/validate": {}
  "/api/health": {}
  "/api/incidents": {}
  "/api/integrations": {}
  "/api/integrations/[code]": { "code": string; }
  "/api/integrations/[code]/data-preview": { "code": string; }
  "/api/integrations/[code]/fault": { "code": string; }
  "/api/integrations/[code]/health": { "code": string; }
  "/api/integrations/[code]/mapping": { "code": string; }
  "/api/integrations/[code]/sync": { "code": string; }
  "/api/integrations/[code]/test": { "code": string; }
  "/api/integrations/readiness": {}
  "/api/knowledge-graph": {}
  "/api/learning": {}
  "/api/live-grid": {}
  "/api/live-grid/assets/[code]": { "code": string; }
  "/api/live-grid/assets/[code]/history": { "code": string; }
  "/api/live-grid/assets/[code]/telemetry": { "code": string; }
  "/api/live-grid/cascade": {}
  "/api/live-grid/power-flow": {}
  "/api/live-grid/predictions": {}
  "/api/live-grid/scenes": {}
  "/api/live-grid/simulate": {}
  "/api/live-grid/state": {}
  "/api/live-grid/time-machine": {}
  "/api/live-grid/topology": {}
  "/api/live-grid/trace": {}
  "/api/maintenance": {}
  "/api/models/drift": {}
  "/api/notifications": {}
  "/api/optimization": {}
  "/api/orchestrator/analyze": {}
  "/api/physics/envelopes": {}
  "/api/physics/validate": {}
  "/api/predictions": {}
  "/api/predictions/[code]": { "code": string; }
  "/api/prevention-patterns": {}
  "/api/proofs": {}
  "/api/provenance/[code]": { "code": string; }
  "/api/recommendations": {}
  "/api/recommendations/[id]": { "id": string; }
  "/api/resilience": {}
  "/api/resilience/red-blue": {}
  "/api/risk-hunter/discoveries": {}
  "/api/risk-hunter/discoveries/[code]/prevent": { "code": string; }
  "/api/risk-hunter/run": {}
  "/api/risk-hunter/runs/[code]": { "code": string; }
  "/api/root-cause": {}
  "/api/scenarios": {}
  "/api/scenarios/[id]": { "id": string; }
  "/api/search": {}
  "/api/self-healing": {}
  "/api/sensors": {}
  "/api/sensors/[code]": { "code": string; }
  "/api/sensors/[code]/fault": { "code": string; }
  "/api/settings": {}
  "/api/simulations": {}
  "/api/simulations/[id]": { "id": string; }
  "/api/storage/dispatch": {}
  "/api/strategies/pareto": {}
  "/api/stream/grid": {}
  "/api/stream/live-grid": {}
  "/api/stress-test": {}
  "/api/uncertainty": {}
  "/api/users/[id]": { "id": string; }
  "/api/verification": {}
  "/api/verification/[code]": { "code": string; }
  "/api/war-room": {}
  "/api/weakest-link": {}
  "/assets": {}
  "/assets/[code]": { "code": string; }
  "/audit": {}
  "/cascade": {}
  "/command-center": {}
  "/compare-futures": {}
  "/control-room": {}
  "/copilot": {}
  "/counterfactual": {}
  "/dashboard": {}
  "/data-health": {}
  "/decisions": {}
  "/demo": {}
  "/demo/immersive": {}
  "/demo/live-grid": {}
  "/digital-twin": {}
  "/discovery": {}
  "/evidence": {}
  "/executive": {}
  "/failure-dna": {}
  "/forecast": {}
  "/grid": {}
  "/grid-physics": {}
  "/hackathon": {}
  "/incidents": {}
  "/incidents/[code]": { "code": string; }
  "/integrations": {}
  "/knowledge-graph": {}
  "/learning": {}
  "/live-grid": {}
  "/login": {}
  "/maintenance": {}
  "/map": {}
  "/models": {}
  "/predictions": {}
  "/predictions/[code]": { "code": string; }
  "/proofs": {}
  "/proofs/[code]": { "code": string; }
  "/renewables": {}
  "/reports": {}
  "/resilience": {}
  "/risk-hunter": {}
  "/risk-radar": {}
  "/roles": {}
  "/scenarios": {}
  "/self-healing": {}
  "/sensors": {}
  "/settings": {}
  "/simulations": {}
  "/time-machine": {}
  "/trust": {}
  "/users": {}
  "/verification": {}
  "/war-room": {}
  "/why-nabdh": {}
}


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