/**
 * 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<TEnv>(params: Record<string, string>, request: Request, searchParams: URLSearchParams, pathname: string, url: URL, bindings?: any, routeMap?: Record<string, string>, routeName?: string): InternalHandlerContext<any, TEnv>;
/**
 * 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<TEnv>(params: Record<string, string>, pathname: string, handleStore: HandleStore): InternalHandlerContext<any, TEnv>;
//# sourceMappingURL=handler-context.d.ts.map