/**
 * A navigational prompts hook that prevents users from accidentally leaving a page with unsaved changes.
 *
 * This hook listens for both `beforeunload` and `popstate` events
 *
 * @param enabled - Controls whether the hook is active. Can be a boolean or a function that returns a boolean.
 * @param message - Optional custom message to display in the confirmation dialog.
 */
export declare const useNavigationalPrompts: (enabled?: boolean | (() => boolean), message?: string) => string | void;
