import React__default from 'react'; /** * 受保护的组件,是否需要登录信息 */ interface IProps { /** 是否拥有权限 如果这个配置了 那么直接返回组件 */ hasAuth?: boolean; element: any; backLogin: () => React__default.ReactNode; /** 获取当前用户的权限列表 */ useAuth?: any; /** 当前页面的路由 */ path?: string; /** 路由白名单 */ whitePaths?: string[]; /** 回到首页相关逻辑 */ useNavigate?: any; goHome?: any; } declare function ProtectedRoute(props: IProps): any; export { ProtectedRoute as default };