import React, { SyntheticEvent } from 'react'; export interface Routable { onError?: (err: { cancelled: boolean; url: string; type?: string; }) => void; guard?: (url?: string) => boolean; requiresLeaveConfirmation?: boolean; url: string; as?: string; onClick?: (e?: SyntheticEvent) => void; prefetch?: boolean; } export declare function withRouter(Component: React.FC): { (props: T): import("react/jsx-runtime").JSX.Element; displayName: string; };