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

type AppRoutes = "/" | "/accounting-settings" | "/audit-logs" | "/auth/sign-up" | "/auth/sign-up-success" | "/bullion-bars" | "/bullion-bars/[id]" | "/buy-orders" | "/buy-orders/[id]" | "/buy-orders/create" | "/cash-wallet" | "/customers" | "/customers/[id]" | "/fees" | "/finance/payment-vouchers" | "/finance/receipt-vouchers" | "/finance/reconciliation" | "/finance/settlements" | "/gold-wallet" | "/inbound-postings" | "/inbound-postings/[id]" | "/inventory" | "/inventory-logistics" | "/kyc" | "/ledger" | "/ledger/payments" | "/login" | "/notifications" | "/orders" | "/outbound-orders" | "/outbound-orders/[id]" | "/outbound-orders/create" | "/platform-allocations" | "/platform-allocations/[id]" | "/pricing" | "/purchase-orders" | "/purchase-orders/[id]" | "/purchase-orders/[id]/edit" | "/purchase-orders/create" | "/purchase-returns" | "/purchase-returns/[id]" | "/reconciliation" | "/redemptions" | "/reports" | "/risk-aml" | "/roles" | "/sell-orders" | "/sell-orders/[id]" | "/sell-orders/create" | "/settings" | "/supplier-shipments" | "/supplier-shipments/[id]" | "/supplier-shipments/create" | "/suppliers" | "/support" | "/transfers" | "/users" | "/warehouse/bars" | "/warehouse/branch-allocation" | "/warehouse/branches" | "/warehouse/custody" | "/warehouse/deliveries" | "/warehouse/inbound-postings" | "/warehouse/incidents" | "/warehouse/inspections" | "/warehouse/outbound-orders" | "/warehouse/platform-allocation" | "/warehouse/purchase-orders" | "/warehouse/purchase-requests" | "/warehouse/purchase-returns" | "/warehouse/receiving" | "/warehouse/stock-counts" | "/warehouse/supplier-shipments" | "/warehouse/transfers" | "/warehouse/vaults"
type AppRouteHandlerRoutes = "/auth/logout"
type PageRoutes = never
type LayoutRoutes = "/"
type RedirectRoutes = never
type RewriteRoutes = never
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes


interface ParamMap {
  "/": {}
  "/accounting-settings": {}
  "/audit-logs": {}
  "/auth/logout": {}
  "/auth/sign-up": {}
  "/auth/sign-up-success": {}
  "/bullion-bars": {}
  "/bullion-bars/[id]": { "id": string; }
  "/buy-orders": {}
  "/buy-orders/[id]": { "id": string; }
  "/buy-orders/create": {}
  "/cash-wallet": {}
  "/customers": {}
  "/customers/[id]": { "id": string; }
  "/fees": {}
  "/finance/payment-vouchers": {}
  "/finance/receipt-vouchers": {}
  "/finance/reconciliation": {}
  "/finance/settlements": {}
  "/gold-wallet": {}
  "/inbound-postings": {}
  "/inbound-postings/[id]": { "id": string; }
  "/inventory": {}
  "/inventory-logistics": {}
  "/kyc": {}
  "/ledger": {}
  "/ledger/payments": {}
  "/login": {}
  "/notifications": {}
  "/orders": {}
  "/outbound-orders": {}
  "/outbound-orders/[id]": { "id": string; }
  "/outbound-orders/create": {}
  "/platform-allocations": {}
  "/platform-allocations/[id]": { "id": string; }
  "/pricing": {}
  "/purchase-orders": {}
  "/purchase-orders/[id]": { "id": string; }
  "/purchase-orders/[id]/edit": { "id": string; }
  "/purchase-orders/create": {}
  "/purchase-returns": {}
  "/purchase-returns/[id]": { "id": string; }
  "/reconciliation": {}
  "/redemptions": {}
  "/reports": {}
  "/risk-aml": {}
  "/roles": {}
  "/sell-orders": {}
  "/sell-orders/[id]": { "id": string; }
  "/sell-orders/create": {}
  "/settings": {}
  "/supplier-shipments": {}
  "/supplier-shipments/[id]": { "id": string; }
  "/supplier-shipments/create": {}
  "/suppliers": {}
  "/support": {}
  "/transfers": {}
  "/users": {}
  "/warehouse/bars": {}
  "/warehouse/branch-allocation": {}
  "/warehouse/branches": {}
  "/warehouse/custody": {}
  "/warehouse/deliveries": {}
  "/warehouse/inbound-postings": {}
  "/warehouse/incidents": {}
  "/warehouse/inspections": {}
  "/warehouse/outbound-orders": {}
  "/warehouse/platform-allocation": {}
  "/warehouse/purchase-orders": {}
  "/warehouse/purchase-requests": {}
  "/warehouse/purchase-returns": {}
  "/warehouse/receiving": {}
  "/warehouse/stock-counts": {}
  "/warehouse/supplier-shipments": {}
  "/warehouse/transfers": {}
  "/warehouse/vaults": {}
}


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