Return type of useNavigationGuard.
Call this when the user cancels and wants to stay.
Call this when the user confirms they want to leave.
Whether the confirmation dialog should be shown.
Dismiss the guard before navigating away intentionally (e.g., clicking a Leave button).
Return type of useNavigationGuard.