import type { History, Location } from 'history';
import type { MetadataTemplateInstance } from '@box/metadata-editor';
interface Params {
    editingTemplate: MetadataTemplateInstance | null;
    fileId: string;
    history: History;
    isConfidenceScoreReviewEnabled: boolean;
    onEditingStateChange?: (isEditing: boolean) => void;
    setEditingTemplate: (t: MetadataTemplateInstance | null) => void;
    setIsUnsavedChangesModalOpen: (open: boolean) => void;
    setPendingTemplateToEdit: (t: MetadataTemplateInstance | null) => void;
    registerOpenWarningModalCallback?: (fn: (isOpen: boolean) => void) => void;
    onWarningModalClose?: () => void;
}
interface Result {
    handleUnsavedChangesModalOpen: (isOpen: boolean) => void;
    pendingNavLocation: Location | null;
    setPendingNavLocation: (loc: Location | null) => void;
    unblockRouterHistory: () => void;
}
export default function useMetadataSidebarUnsavedChangesGuard({ editingTemplate, fileId, history, isConfidenceScoreReviewEnabled, onEditingStateChange, setEditingTemplate, setIsUnsavedChangesModalOpen, setPendingTemplateToEdit, registerOpenWarningModalCallback, onWarningModalClose, }: Params): Result;
export {};
