import { Location } from "../router/history.js"; import { DataRouteObject, RouteBranch, RouteObject } from "../router/utils.js"; import { FutureConfig, Router, StaticHandlerContext } from "../router/router.js"; import * as React$1 from "react"; //#region lib/dom/server.d.ts /** * @category Types */ interface StaticRouterProps { /** * The base URL for the static router (default: `/`) */ basename?: string; /** * The child elements to render inside the static router */ children?: React$1.ReactNode; /** * The {@link Location} to render the static router at (default: `/`) */ location: Partial | string; } /** * A {@link Router | ``} that may not navigate to any other {@link Location}. * This is useful on the server where there is no stateful UI. * * @public * @category Declarative Routers * @mode declarative * @param props Props * @param {StaticRouterProps.basename} props.basename n/a * @param {StaticRouterProps.children} props.children n/a * @param {StaticRouterProps.location} props.location n/a * @returns A React element that renders the static {@link Router | ``} */ declare function StaticRouter({ basename, children, location: locationProp }: StaticRouterProps): React$1.JSX.Element; /** * @category Types */ interface StaticRouterProviderProps { /** * The {@link StaticHandlerContext} returned from {@link StaticHandler}'s * `query` */ context: StaticHandlerContext; /** * The static {@link DataRouter} from {@link createStaticRouter} */ router: Router; /** * Whether to hydrate the router on the client (default `true`) */ hydrate?: boolean; /** * The [`nonce`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/nonce) * to use for the hydration [`