import { BlockerFunction, Location } from 'react-router'; declare interface InitialStateType { isActive: boolean; onConfirm(): void; resetConfirmation(): void; nextLocation?: Location; } declare const useConfirm: (when: boolean | BlockerFunction) => InitialStateType; export default useConfirm;