/** * Router Handler Context * * Creates the handler context object passed to route handlers, middleware, and loaders. */ import type { InternalHandlerContext } from "../types"; import type { HandleStore } from "../server/handle-store.js"; /** * Create HandlerContext with typed env/var/get/set */ export declare function createHandlerContext(params: Record, request: Request, searchParams: URLSearchParams, pathname: string, url: URL, bindings?: any, routeMap?: Record, routeName?: string): InternalHandlerContext; /** * Create a BuildContext for pre-rendering. * * Returns a HandlerContext-compatible object where params, pathname, url, * and use(handle) work, but request/env/headers/cookies/var/searchParams * throw with a clear error. Loaders are not available during pre-rendering. */ export declare function createBuildContext(params: Record, pathname: string, handleStore: HandleStore): InternalHandlerContext; //# sourceMappingURL=handler-context.d.ts.map