import { Link } from '../../types'; export interface UseLockProps { /** Callback, which will be called on router change */ handleLeave?: (nextLocation: Link, currentLocation: Link) => Promise; /** * Pass true to enable lock mechanism. * If false, the lock mechanism will be disabled - router can't be blocked */ isEnabled: boolean; } export declare function useLock({ handleLeave, isEnabled }: UseLockProps): { block: () => void; unblock: () => void; isLocked: boolean; }; //# sourceMappingURL=useLock.d.ts.map