import React from 'react'; import { useLocation, useNavigate, useParams } from 'react-router-dom'; export interface RouteComponentProps> { history?: { back: () => void; goBack: () => void; location: ReturnType; push: (url: string, state?: any) => void; }; location?: ReturnType; match?: { params: T; }; params?: T; navigate?: ReturnType; } export declare function withRouter

>(Component: React.ComponentType

): (props: P) => React.JSX.Element;