/// <reference types="react" />
import { Location } from 'history';
export type RouteLeavingGuardProps = {
    navigate?: (path: string) => void;
    onLeave?: (nextLocation?: Location) => void;
    shouldBlockNavigation: (location: Location) => boolean;
    when?: boolean;
};
export declare const RouteLeavingGuard: ({ when, onLeave, shouldBlockNavigation }: RouteLeavingGuardProps) => JSX.Element;
