// This file is generated automatically by Next.js // Do not edit this file manually type AppRoutes = "/" type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/events" | "/api/agent/new" | "/api/auth/all-providers" | "/api/auth/api-key/[provider]" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/cwd/validate" | "/api/default-cwd" | "/api/files/[...path]" | "/api/home" | "/api/models" | "/api/models-config" | "/api/models-config/test" | "/api/sessions" | "/api/sessions/[id]" | "/api/sessions/[id]/context" | "/api/sessions/[id]/export" | "/api/sessions/new" | "/api/skills" | "/api/skills/install" | "/api/skills/search" type PageRoutes = never type LayoutRoutes = "/" type RedirectRoutes = never type RewriteRoutes = never type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes interface ParamMap { "/": {} "/api/agent/[id]": { "id": string; } "/api/agent/[id]/events": { "id": string; } "/api/agent/new": {} "/api/auth/all-providers": {} "/api/auth/api-key/[provider]": { "provider": string; } "/api/auth/login/[provider]": { "provider": string; } "/api/auth/logout/[provider]": { "provider": string; } "/api/auth/providers": {} "/api/cwd/validate": {} "/api/default-cwd": {} "/api/files/[...path]": { "path": string[]; } "/api/home": {} "/api/models": {} "/api/models-config": {} "/api/models-config/test": {} "/api/sessions": {} "/api/sessions/[id]": { "id": string; } "/api/sessions/[id]/context": { "id": string; } "/api/sessions/[id]/export": { "id": string; } "/api/sessions/new": {} "/api/skills": {} "/api/skills/install": {} "/api/skills/search": {} } export type ParamsOf = 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
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 } }