import type { RuntimeAdapter } from "../../../platform/adapters/base.js"; import type { VeryfrontConfig } from "../../../config/index.js"; import type { APIContext } from "../context-builder.js"; import type { ApplicationIdentity } from "../../../security/application-auth/types.js"; export interface AppRouteContext { params: Record; identity: ApplicationIdentity | null; /** Immutable environment snapshot for the current project request. */ env: Readonly>; } export type HTTPMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS"; export type PagesRouteHandler = (ctx: APIContext) => Promise | Response; export type AppRouteHandler = (request: Request, context: AppRouteContext) => Promise | Response; export type RouteHandler = PagesRouteHandler | AppRouteHandler; /** Route module shape with method handlers and an optional default handler. */ export type APIRoute = Partial> & { default?: RouteHandler; }; export interface LoadModuleOptions { projectDir: string; modulePath: string; adapter: RuntimeAdapter; config?: VeryfrontConfig; } export interface LoadHostModuleOptions extends LoadModuleOptions { /** Explicit host-owned capability for trusted local development only. */ allowHostProjectCodeExecution: true; } //# sourceMappingURL=types.d.ts.map