import { FC, PropsWithChildren } from 'react'; import { RouteObject } from 'react-router'; import { FCC } from "./fc.js"; import { IRequestContext } from "../node/render.js"; declare module 'react-router' { interface LoaderFunctionArgs { context?: IRequestContext; } interface ActionFunctionArgs { context?: IRequestContext; } } declare const keys: readonly ["loader", "action", "ErrorBoundary", "errorElement"]; type IRouteParams = Pick & { Suspense?: FCC>; }; type FCRoute> = FC & IRouteParams; type FCCRoute> = FC> & IRouteParams; export type { FCRoute, FCCRoute, IRouteParams }; export { keys };