import React, { type ReactNode } from 'react'; import type { ErrorBoundaryProps } from './views/Try'; export type DynamicConvention = { name: string; deep: boolean; notFound?: boolean; }; export type LoadedRoute = { ErrorBoundary?: React.ComponentType; default?: React.ComponentType; unstable_settings?: Record; getNavOptions?: (args: any) => any; generateStaticParams?: (props: { params?: Record; }) => Record[]; loader?: (props: { params?: Record; }) => Record[]; }; export type RouteNode = { /** The type of RouteNode */ type: 'route' | 'api' | 'layout'; /** Load a route into memory. Returns the exports from a route. */ loadRoute: () => Partial; /** Loaded initial route name. */ initialRouteName?: string; /** nested routes */ children: RouteNode[]; /** Is the route a dynamic path */ dynamic: null | DynamicConvention[]; /** `index`, `error-boundary`, etc. */ route: string; /** Context Module ID, used for matching children. */ contextKey: string; /** Added in-memory */ generated?: boolean; /** Internal screens like the directory or the auto 404 should be marked as internal. */ internal?: boolean; /** File paths for async entry modules that should be included in the initial chunk request to ensure the runtime JavaScript matches the statically rendered HTML representation. */ entryPoints?: string[]; }; /** Return the RouteNode at the current contextual boundary. */ export declare function useRouteNode(): RouteNode | null; export declare function useContextKey(): string; /** Provides the matching routes and filename to the children. */ export declare function Route({ children, node }: { children: ReactNode; node: RouteNode; }): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Route.d.ts.map