import { type ReactNode } from 'react'; interface UseUnsavedChangesGuardArgs { /** * When `true`, intercept any guard-aware navigation request and prompt the * user with the confirmation modal. Re-evaluated on every navigation. */ isBlocked: boolean; /** * Invoked synchronously when the user confirms navigation. Use this to * reset edit/form state (e.g. restore a snapshot) before navigation runs. */ onConfirm: () => void; /** Optional summary of the unsaved changes, shown in the confirmation modal. */ renderDetails?: () => ReactNode; } /** * Registers a navigation guard while a component has unsaved changes. * Automatically unregisters on unmount. */ export declare const useUnsavedChangesGuard: ({ isBlocked, onConfirm, renderDetails }: UseUnsavedChangesGuardArgs) => void; export {};