import { RouterState, StaticHandlerContext } from 'react-router';
import { RuntimeRouter } from './runtime.router';
/**
 * Indicates whether the code is running in a browser environment.
 * The value is `true` if the `window` object is defined, which signifies
 * a client-side environment, and `false` otherwise.
 *
 * This variable can be used to distinguish between server-side
 * and client-side execution.
 */
export declare const isBrowser: boolean;
export declare const DEFAULT_ROOT_ROUTE_ID = "root";
/**
 * Processes and returns the context necessary for static route handling.
 *
 * This function takes a location object and a router instance, analyzes the URL path and query parameters,
 * and determines matching routes. It constructs and returns a `StaticHandlerContext` object, which contains
 * details about the current route matching state, loader/action data, status code, error boundaries, and more.
 * It is particularly useful for server-side rendering and static route analysis.
 *
 * @param {RouterState['location']} location - The location object representing the current URL state (path and query parameters).
 * @param {RuntimeRouter} router - The router instance containing route definitions and defaults.
 * @returns {StaticHandlerContext} - The context object representing the state of the route handling process,
 * including matching routes, loader and action data, status codes, and error information.
 */
export declare const routerContext: (location: RouterState["location"], router: RuntimeRouter) => StaticHandlerContext;
