import type { InjectedRouter, Route } from "react-router";
export declare const useConfirmOnRouteLeave: ({ router, route, shouldConfirm, confirm, }: {
    router?: InjectedRouter;
    route?: Route;
    shouldConfirm: boolean;
    confirm: (onConfirm: () => void) => void;
}) => void;
