import { ComponentType } from 'react';
import { RouteObject } from 'react-router-dom';

declare type Route = RouteObject & {
    importPromise?: () => Promise<ComponentType>;
};
interface Props {
    routes: Route[];
}
declare function EagerLoader({ routes }: Props): null;

export { EagerLoader };
