/** * @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. */ export { renderSegments, RouteNotFoundError, DataNotFoundError, notFound, MiddlewareError, HandlerError, BuildError, InvalidHandlerError, NetworkError, isNetworkError, sanitizeError, RouterError, } from "./index.js"; export type { DocumentProps, RouterEnv, DefaultEnv, RouteDefinition, RouteConfig, RouteDefinitionOptions, TrailingSlashMode, Handler, ScopedRouteMap, HandlerContext, ExtractParams, GenericParams, Middleware, RevalidateParams, Revalidate, RouteKeys, LoaderDefinition, LoaderFn, LoaderContext, FetchableLoaderOptions, LoadOptions, LoaderActionContext, LoaderAction, LoaderMiddlewareFn, ErrorInfo, ErrorBoundaryFallbackProps, ErrorBoundaryHandler, ClientErrorBoundaryFallbackProps, NotFoundInfo, NotFoundBoundaryFallbackProps, NotFoundBoundaryHandler, ErrorPhase, OnErrorContext, OnErrorCallback, } from "./types.js"; export type { RSCRouterOptions } from "./router.js"; export { createLoader, redirect, type RouteHelpers, type RouteHandlers, } from "./route-definition.js"; export { createHandle, isHandle, type Handle } from "./handle.js"; export { Prerender, isPrerenderHandler, type PrerenderHandlerDefinition, type PrerenderOptions, type BuildContext, } from "./prerender.js"; export { Static, isStaticHandler, type StaticHandlerDefinition, } from "./static-handler.js"; export { urls, RESPONSE_TYPE, type PathHelpers, type PathOptions, type UrlPatterns, type IncludeOptions, type IncludeItem, type RouteResponse, type ResponseError, type ResponseEnvelope, type ResponseHandler, type ResponseHandlerContext, type JsonResponseHandler, type TextResponseHandler, type JsonValue, type ResponsePathFn, type JsonResponsePathFn, type TextResponsePathFn, } from "./urls.js"; export { createRouter, type RSCRouter, type RootLayoutProps, } from "./router.js"; export type { HandlerCacheConfig } from "./rsc/types.js"; export { Meta } from "./handles/meta.js"; export { getRequestContext, requireRequestContext, type RequestContext, } from "./server/request-context.js"; export type { MetaDescriptor, MetaDescriptorBase } from "./router/types.js"; export type { MiddlewareContext, CookieOptions, } from "./router/middleware.js"; export type { ScopedReverseFunction, ReverseFunction, ExtractLocalRoutes, PrefixedRoutes, PrefixRoutePatterns, ParamsFor, SanitizePrefix, MergeRoutes } from "./reverse.js"; export { scopedReverse, createReverse } from "./reverse.js"; export type { SearchSchema, SearchSchemaValue, ResolveSearchSchema, RouteSearchParams, RouteParams } from "./search-params.js"; export { track } from "./server/context.js"; export { enableMatchDebug, getMatchDebugStats, } from "./router/pattern-matching.js"; export { createLocationState, type LocationStateDefinition, type LocationStateEntry, } from "./browser/react/location-state-shared.js"; export type { PathResponse } from "./href-client.js"; //# sourceMappingURL=index.rsc.d.ts.map