// This file is generated automatically by Next.js // Do not edit this file manually type AppRoutes = "/" | "/checkout" | "/dashboard" | "/features" | "/login" | "/pricing" | "/profile" | "/project/[id]" | "/project/[id]/ideas" | "/project/[id]/settings" | "/project/[id]/workflow" | "/project/[id]/world" | "/signup" type AppRouteHandlerRoutes = "/api/ai/generate" | "/api/ai/transform" | "/api/auth/[...nextauth]" | "/api/auth/register" | "/api/chapters" | "/api/chapters/[id]" | "/api/entities" | "/api/entities/[id]" | "/api/ideas" | "/api/ideas/[id]" | "/api/projects" | "/api/projects/[id]" type PageRoutes = never type LayoutRoutes = "/" | "/project/[id]" type RedirectRoutes = never type RewriteRoutes = never type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes interface ParamMap { "/": {} "/api/ai/generate": {} "/api/ai/transform": {} "/api/auth/[...nextauth]": { "nextauth": string[]; } "/api/auth/register": {} "/api/chapters": {} "/api/chapters/[id]": { "id": string; } "/api/entities": {} "/api/entities/[id]": { "id": string; } "/api/ideas": {} "/api/ideas/[id]": { "id": string; } "/api/projects": {} "/api/projects/[id]": { "id": string; } "/checkout": {} "/dashboard": {} "/features": {} "/login": {} "/pricing": {} "/profile": {} "/project/[id]": { "id": string; } "/project/[id]/ideas": { "id": string; } "/project/[id]/settings": { "id": string; } "/project/[id]/workflow": { "id": string; } "/project/[id]/world": { "id": string; } "/signup": {} } export type ParamsOf = ParamMap[Route] interface LayoutSlotMap { "/": never "/project/[id]": 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
Blog post: {slug}
* } * ``` */ interface PageProps { params: Promise searchParams: Promise> } /** * Props for Next.js App Router layout components * @example * ```tsx * export default function Layout(props: LayoutProps<'/dashboard'>) { * return
{props.children}
* } * ``` */ type LayoutProps = { params: Promise 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 { params: Promise } }