/**
 * @rangojs/router (react-server environment)
 *
 * This file is used when importing "@rangojs/router" from RSC (server components).
 * It re-exports everything from the universal index.ts plus adds server-side
 * implementations that replace the client-side error stubs.
 *
 * The bundler uses the "react-server" export condition to select this file
 * in RSC context, while the regular index.ts is used in client components.
 */
// Re-export all universal exports from index.ts
export { 
// Universal rendering utilities
renderSegments, 
// Error classes
RouteNotFoundError, DataNotFoundError, notFound, MiddlewareError, HandlerError, BuildError, InvalidHandlerError, NetworkError, isNetworkError, sanitizeError, RouterError, } from "./index.js";
// Server-side createLoader and redirect
export { createLoader, redirect, } from "./route-definition.js";
// Handle API
export { createHandle, isHandle } from "./handle.js";
// Pre-render handler API
export { Prerender, isPrerenderHandler, } from "./prerender.js";
// Static handler API
export { Static, isStaticHandler, } from "./static-handler.js";
// Django-style URL patterns (RSC/server context)
export { urls, RESPONSE_TYPE, } from "./urls.js";
// Core router (server-side)
export { createRouter, } from "./router.js";
// Built-in handles (server-side)
export { Meta } from "./handles/meta.js";
// Request context (for accessing request data in server actions/components)
export { getRequestContext, requireRequestContext, } from "./server/request-context.js";
export { scopedReverse, createReverse } from "./reverse.js";
// Performance tracking (server-only)
export { track } from "./server/context.js";
// Debug utilities for route matching (development only)
export { enableMatchDebug, getMatchDebugStats, } from "./router/pattern-matching.js";
// Location state (universal)
export { createLocationState, } from "./browser/react/location-state-shared.js";
//# sourceMappingURL=index.rsc.js.map