import { ComponentType } from 'react'; import { RouteObject } from 'react-router-dom'; declare type Route = RouteObject & { importPromise?: () => Promise; }; interface Props { routes: Route[]; } declare function EagerLoader({ routes }: Props): null; export { EagerLoader };