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

type AppRoutes = "/" | "/appraisals" | "/appraisals/[id]" | "/dashboard" | "/executive" | "/kpis" | "/login" | "/posts" | "/reports" | "/reports/monthly" | "/settings" | "/tasks" | "/users" | "/weekly"
type AppRouteHandlerRoutes = "/api/appraisals" | "/api/appraisals/[id]" | "/api/auth/[...nextauth]" | "/api/channels" | "/api/channels/[id]" | "/api/companies" | "/api/companies/[id]" | "/api/companies/[id]/financials" | "/api/contributions" | "/api/contributions/[id]" | "/api/dashboard/executive" | "/api/departments" | "/api/departments/[id]" | "/api/kpis" | "/api/kpis/[id]" | "/api/kpis/[id]/monthly" | "/api/me" | "/api/platforms" | "/api/platforms/[id]" | "/api/posts" | "/api/posts/[id]" | "/api/reports" | "/api/reports/monthly" | "/api/tasks" | "/api/tasks/[id]" | "/api/tasks/override" | "/api/users" | "/api/users/[id]"
type PageRoutes = never
type LayoutRoutes = "/"
type RedirectRoutes = never
type RewriteRoutes = never
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes


interface ParamMap {
  "/": {}
  "/api/appraisals": {}
  "/api/appraisals/[id]": { "id": string; }
  "/api/auth/[...nextauth]": { "nextauth": string[]; }
  "/api/channels": {}
  "/api/channels/[id]": { "id": string; }
  "/api/companies": {}
  "/api/companies/[id]": { "id": string; }
  "/api/companies/[id]/financials": { "id": string; }
  "/api/contributions": {}
  "/api/contributions/[id]": { "id": string; }
  "/api/dashboard/executive": {}
  "/api/departments": {}
  "/api/departments/[id]": { "id": string; }
  "/api/kpis": {}
  "/api/kpis/[id]": { "id": string; }
  "/api/kpis/[id]/monthly": { "id": string; }
  "/api/me": {}
  "/api/platforms": {}
  "/api/platforms/[id]": { "id": string; }
  "/api/posts": {}
  "/api/posts/[id]": { "id": string; }
  "/api/reports": {}
  "/api/reports/monthly": {}
  "/api/tasks": {}
  "/api/tasks/[id]": { "id": string; }
  "/api/tasks/override": {}
  "/api/users": {}
  "/api/users/[id]": { "id": string; }
  "/appraisals": {}
  "/appraisals/[id]": { "id": string; }
  "/dashboard": {}
  "/executive": {}
  "/kpis": {}
  "/login": {}
  "/posts": {}
  "/reports": {}
  "/reports/monthly": {}
  "/settings": {}
  "/tasks": {}
  "/users": {}
  "/weekly": {}
}


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