/**
 * Prompts the user to confirm before closing the page/tab.
 * @param condition A function that returns a boolean value. If the value is true, the user will be prompted.
 * @see https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event
 */
declare function useConfirmBeforeClosing(condition?: () => boolean): void;
export default useConfirmBeforeClosing;

export { }
