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

type AppRoutes = "/" | "/accounts" | "/accounts/[id]" | "/accounts/commissions/reports/yearly-closing" | "/accounts/commissions/schemes" | "/accounts/commissions/settlements" | "/accounts/employees" | "/accounts/employees/[id]" | "/accounts/employees/new" | "/accounts/expenses" | "/accounts/expenses/[id]" | "/accounts/expenses/new" | "/accounts/ledger" | "/accounts/opening-balances" | "/accounts/opening-balances/[id]" | "/accounts/opening-balances/journal" | "/accounts/opening-balances/new" | "/accounts/profit-loss" | "/accounts/reconcile" | "/accounts/salaries" | "/accounts/salaries/[id]" | "/accounts/salaries/new" | "/accounts/transactions" | "/accounts/transactions/new" | "/accounts/transfers" | "/accounts/transfers/[id]" | "/accounts/transfers/new" | "/activity-log" | "/barcode-print" | "/courier/couriers" | "/courier/shipments" | "/courier/shipments/new" | "/courier/zones" | "/customers" | "/customers/[id]" | "/customers/[id]/edit" | "/customers/new" | "/dashboard" | "/dealers" | "/dealers/[id]" | "/dealers/[id]/edit" | "/dealers/new" | "/districts" | "/districts/[id]" | "/forgot-password" | "/franchise/groups" | "/franchise/groups/[id]" | "/franchise/groups/new" | "/franchise/replenishment-orders" | "/franchise/reports" | "/franchise/royalty" | "/hrm/departments" | "/hrm/designations" | "/hrm/employees" | "/hrm/employees/[id]" | "/hrm/employees/new" | "/hrm/payroll" | "/hrm/payroll/[id]" | "/hrm/payroll/new" | "/hrm/salary-contracts" | "/hrm/salary-structures" | "/inventory/adjustments" | "/inventory/adjustments/[id]" | "/inventory/adjustments/new" | "/inventory/counts" | "/inventory/damage-management" | "/inventory/damage-management/history" | "/inventory/movements" | "/inventory/movements/new" | "/inventory/opening-stock" | "/inventory/opening-stock/[id]" | "/inventory/opening-stock/new" | "/inventory/serials" | "/inventory/stock" | "/inventory/stock-layers" | "/inventory/transfers" | "/inventory/transfers/[id]" | "/inventory/transfers/new" | "/login" | "/pos" | "/pos/receipt/pending/[clientId]" | "/pos/shifts" | "/pos/sync-queue" | "/pos/terminals" | "/pricing" | "/purchases" | "/purchases/invoices" | "/purchases/invoices/[id]" | "/purchases/invoices/[id]/edit" | "/purchases/invoices/new" | "/purchases/payments" | "/purchases/payments/[id]" | "/purchases/payments/new" | "/purchases/returns" | "/purchases/returns/[id]" | "/purchases/returns/new" | "/purchases/work-orders" | "/replacement/claims" | "/replacement/claims/[id]" | "/replacement/claims/new" | "/replacement/issues" | "/replacement/issues/[id]" | "/replacement/issues/new" | "/replacement/requests" | "/replacement/requests/[id]" | "/replacement/requests/new" | "/replacement/returns" | "/replacement/returns/[id]" | "/replacement/returns/new" | "/reports" | "/reports/balance-sheet" | "/reports/bankbook" | "/reports/cash-flow" | "/reports/cashbook" | "/reports/due-aging" | "/reports/installment-forecast" | "/reports/mfs-ledger" | "/reports/party-statement" | "/reports/product-wise" | "/reports/profit-loss" | "/reports/purchase-invoice-details" | "/reports/purchases" | "/reports/replacement-aging" | "/reports/sales" | "/reports/sales-invoice-details" | "/reports/scrap-register" | "/reports/stock" | "/reports/stock-aging" | "/reports/trial-balance" | "/reset-password" | "/sales/collections" | "/sales/collections/[id]" | "/sales/collections/new" | "/sales/commissions" | "/sales/installments" | "/sales/invoices" | "/sales/invoices/[id]" | "/sales/invoices/[id]/edit" | "/sales/invoices/[id]/print" | "/sales/invoices/new" | "/sales/returns" | "/sales/returns/[id]" | "/sales/returns/new" | "/set-password" | "/settings" | "/settings/backup" | "/settings/barcodes" | "/settings/billing" | "/settings/brands" | "/settings/categories" | "/settings/company" | "/settings/file-vault" | "/settings/general" | "/settings/manufacturers" | "/settings/pos" | "/settings/pricing" | "/settings/products" | "/settings/products/[id]" | "/settings/products/[id]/barcodes" | "/settings/products/[id]/edit" | "/settings/products/[id]/uoms" | "/settings/products/[id]/variants" | "/settings/products/new" | "/settings/profile" | "/settings/roles" | "/settings/roles/[id]" | "/settings/sms" | "/settings/sms-templates" | "/settings/store-links" | "/settings/stores" | "/settings/stores/[id]" | "/settings/stores/new" | "/settings/tax" | "/settings/uoms" | "/settings/users" | "/settings/variants" | "/signup" | "/suppliers" | "/suppliers/[id]" | "/suppliers/[id]/edit" | "/suppliers/new" | "/vendors" | "/vendors/[id]" | "/vendors/[id]/edit" | "/vendors/new"
type PageRoutes = never
type LayoutRoutes = "/" | "/franchise" | "/pos"
type RedirectRoutes = "/favicon.ico"
type RewriteRoutes = "/api/[[...path]]"
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes


interface ParamMap {
  "/": {}
  "/accounts": {}
  "/accounts/[id]": { "id": string; }
  "/accounts/commissions/reports/yearly-closing": {}
  "/accounts/commissions/schemes": {}
  "/accounts/commissions/settlements": {}
  "/accounts/employees": {}
  "/accounts/employees/[id]": { "id": string; }
  "/accounts/employees/new": {}
  "/accounts/expenses": {}
  "/accounts/expenses/[id]": { "id": string; }
  "/accounts/expenses/new": {}
  "/accounts/ledger": {}
  "/accounts/opening-balances": {}
  "/accounts/opening-balances/[id]": { "id": string; }
  "/accounts/opening-balances/journal": {}
  "/accounts/opening-balances/new": {}
  "/accounts/profit-loss": {}
  "/accounts/reconcile": {}
  "/accounts/salaries": {}
  "/accounts/salaries/[id]": { "id": string; }
  "/accounts/salaries/new": {}
  "/accounts/transactions": {}
  "/accounts/transactions/new": {}
  "/accounts/transfers": {}
  "/accounts/transfers/[id]": { "id": string; }
  "/accounts/transfers/new": {}
  "/activity-log": {}
  "/api/[[...path]]": { "path"?: string[]; }
  "/barcode-print": {}
  "/courier/couriers": {}
  "/courier/shipments": {}
  "/courier/shipments/new": {}
  "/courier/zones": {}
  "/customers": {}
  "/customers/[id]": { "id": string; }
  "/customers/[id]/edit": { "id": string; }
  "/customers/new": {}
  "/dashboard": {}
  "/dealers": {}
  "/dealers/[id]": { "id": string; }
  "/dealers/[id]/edit": { "id": string; }
  "/dealers/new": {}
  "/districts": {}
  "/districts/[id]": { "id": string; }
  "/favicon.ico": {}
  "/forgot-password": {}
  "/franchise": {}
  "/franchise/groups": {}
  "/franchise/groups/[id]": { "id": string; }
  "/franchise/groups/new": {}
  "/franchise/replenishment-orders": {}
  "/franchise/reports": {}
  "/franchise/royalty": {}
  "/hrm/departments": {}
  "/hrm/designations": {}
  "/hrm/employees": {}
  "/hrm/employees/[id]": { "id": string; }
  "/hrm/employees/new": {}
  "/hrm/payroll": {}
  "/hrm/payroll/[id]": { "id": string; }
  "/hrm/payroll/new": {}
  "/hrm/salary-contracts": {}
  "/hrm/salary-structures": {}
  "/inventory/adjustments": {}
  "/inventory/adjustments/[id]": { "id": string; }
  "/inventory/adjustments/new": {}
  "/inventory/counts": {}
  "/inventory/damage-management": {}
  "/inventory/damage-management/history": {}
  "/inventory/movements": {}
  "/inventory/movements/new": {}
  "/inventory/opening-stock": {}
  "/inventory/opening-stock/[id]": { "id": string; }
  "/inventory/opening-stock/new": {}
  "/inventory/serials": {}
  "/inventory/stock": {}
  "/inventory/stock-layers": {}
  "/inventory/transfers": {}
  "/inventory/transfers/[id]": { "id": string; }
  "/inventory/transfers/new": {}
  "/login": {}
  "/pos": {}
  "/pos/receipt/pending/[clientId]": { "clientId": string; }
  "/pos/shifts": {}
  "/pos/sync-queue": {}
  "/pos/terminals": {}
  "/pricing": {}
  "/purchases": {}
  "/purchases/invoices": {}
  "/purchases/invoices/[id]": { "id": string; }
  "/purchases/invoices/[id]/edit": { "id": string; }
  "/purchases/invoices/new": {}
  "/purchases/payments": {}
  "/purchases/payments/[id]": { "id": string; }
  "/purchases/payments/new": {}
  "/purchases/returns": {}
  "/purchases/returns/[id]": { "id": string; }
  "/purchases/returns/new": {}
  "/purchases/work-orders": {}
  "/replacement/claims": {}
  "/replacement/claims/[id]": { "id": string; }
  "/replacement/claims/new": {}
  "/replacement/issues": {}
  "/replacement/issues/[id]": { "id": string; }
  "/replacement/issues/new": {}
  "/replacement/requests": {}
  "/replacement/requests/[id]": { "id": string; }
  "/replacement/requests/new": {}
  "/replacement/returns": {}
  "/replacement/returns/[id]": { "id": string; }
  "/replacement/returns/new": {}
  "/reports": {}
  "/reports/balance-sheet": {}
  "/reports/bankbook": {}
  "/reports/cash-flow": {}
  "/reports/cashbook": {}
  "/reports/due-aging": {}
  "/reports/installment-forecast": {}
  "/reports/mfs-ledger": {}
  "/reports/party-statement": {}
  "/reports/product-wise": {}
  "/reports/profit-loss": {}
  "/reports/purchase-invoice-details": {}
  "/reports/purchases": {}
  "/reports/replacement-aging": {}
  "/reports/sales": {}
  "/reports/sales-invoice-details": {}
  "/reports/scrap-register": {}
  "/reports/stock": {}
  "/reports/stock-aging": {}
  "/reports/trial-balance": {}
  "/reset-password": {}
  "/sales/collections": {}
  "/sales/collections/[id]": { "id": string; }
  "/sales/collections/new": {}
  "/sales/commissions": {}
  "/sales/installments": {}
  "/sales/invoices": {}
  "/sales/invoices/[id]": { "id": string; }
  "/sales/invoices/[id]/edit": { "id": string; }
  "/sales/invoices/[id]/print": { "id": string; }
  "/sales/invoices/new": {}
  "/sales/returns": {}
  "/sales/returns/[id]": { "id": string; }
  "/sales/returns/new": {}
  "/set-password": {}
  "/settings": {}
  "/settings/backup": {}
  "/settings/barcodes": {}
  "/settings/billing": {}
  "/settings/brands": {}
  "/settings/categories": {}
  "/settings/company": {}
  "/settings/file-vault": {}
  "/settings/general": {}
  "/settings/manufacturers": {}
  "/settings/pos": {}
  "/settings/pricing": {}
  "/settings/products": {}
  "/settings/products/[id]": { "id": string; }
  "/settings/products/[id]/barcodes": { "id": string; }
  "/settings/products/[id]/edit": { "id": string; }
  "/settings/products/[id]/uoms": { "id": string; }
  "/settings/products/[id]/variants": { "id": string; }
  "/settings/products/new": {}
  "/settings/profile": {}
  "/settings/roles": {}
  "/settings/roles/[id]": { "id": string; }
  "/settings/sms": {}
  "/settings/sms-templates": {}
  "/settings/store-links": {}
  "/settings/stores": {}
  "/settings/stores/[id]": { "id": string; }
  "/settings/stores/new": {}
  "/settings/tax": {}
  "/settings/uoms": {}
  "/settings/users": {}
  "/settings/variants": {}
  "/signup": {}
  "/suppliers": {}
  "/suppliers/[id]": { "id": string; }
  "/suppliers/[id]/edit": { "id": string; }
  "/suppliers/new": {}
  "/vendors": {}
  "/vendors/[id]": { "id": string; }
  "/vendors/[id]/edit": { "id": string; }
  "/vendors/new": {}
}


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

interface LayoutSlotMap {
  "/": never
  "/franchise": never
  "/pos": never
}


export type { AppRoutes, PageRoutes, LayoutRoutes, RedirectRoutes, RewriteRoutes, ParamMap }

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