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

type AppRoutes = "/" | "/cadastro" | "/dashboard" | "/dashboard/Clientes/Novo_cliente" | "/dashboard/Faturas/DC" | "/dashboard/Faturas/Fatura_Normal" | "/dashboard/Faturas/Faturas" | "/dashboard/Faturas/Faturas/[id]/Ver" | "/dashboard/Faturas/Faturas_Proforma" | "/dashboard/Fornecedores/Novo_fornecedor" | "/dashboard/Produtos_servicos/Stock" | "/dashboard/Produtos_servicos/categorias" | "/dashboard/Vendas/Nova_venda" | "/dashboard/configuracoes" | "/dashboard/relatorios" | "/landlord/dashboard/empresas" | "/landlord/dashboard/empresas/criar" | "/landlord/login" | "/landlord/register" | "/login" | "/register"
type PageRoutes = never
type LayoutRoutes = "/" | "/dashboard" | "/landlord" | "/landlord/dashboard" | "/login"
type RedirectRoutes = never
type RewriteRoutes = never
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes


interface ParamMap {
  "/": {}
  "/cadastro": {}
  "/dashboard": {}
  "/dashboard/Clientes/Novo_cliente": {}
  "/dashboard/configuracoes": {}
  "/dashboard/Faturas/DC": {}
  "/dashboard/Faturas/Fatura_Normal": {}
  "/dashboard/Faturas/Faturas": {}
  "/dashboard/Faturas/Faturas_Proforma": {}
  "/dashboard/Faturas/Faturas/[id]/Ver": { "id": string; }
  "/dashboard/Fornecedores/Novo_fornecedor": {}
  "/dashboard/Produtos_servicos/categorias": {}
  "/dashboard/Produtos_servicos/Stock": {}
  "/dashboard/relatorios": {}
  "/dashboard/Vendas/Nova_venda": {}
  "/landlord": {}
  "/landlord/dashboard": {}
  "/landlord/dashboard/empresas": {}
  "/landlord/dashboard/empresas/criar": {}
  "/landlord/login": {}
  "/landlord/register": {}
  "/login": {}
  "/register": {}
}


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

interface LayoutSlotMap {
  "/": never
  "/dashboard": never
  "/landlord": never
  "/landlord/dashboard": never
  "/login": 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
  }
}
