import React, { ComponentType } from "react"; declare module "react-router-dom-jsonroutes" { export interface RouteItem { path: string; component?: ComponentType; // Consider using a more specific type if possible wrapper?: ComponentType; // Consider using a more specific type if possible children?: RouteItem[]; secure?: boolean; index?: boolean; } export interface RRDJRProps { routesList?: RouteItem[]; authMiddleware?: ComponentType<{ secure: boolean; component: ComponentType }>; } const RRDJR: React.FC; export default RRDJR; }