import { type ReactNode } from 'react'; export interface UseEditSaveReturn { isEditing: boolean; isSaving: boolean; isDirty: boolean; isDiscardModalOpen: boolean; isApplyModalOpen: boolean; handleEdit: () => void; handleCancel: () => void; confirmDiscard: () => void; cancelDiscard: () => void; handleSave: () => void; confirmApply: () => Promise; cancelApply: () => void; } interface UseEditSaveOptions { /** Renders a summary of the page's unsaved changes for the leave-page confirmation. */ renderUnsavedChangesDetails?: () => ReactNode; } export declare const useEditSave: ({ renderUnsavedChangesDetails }?: UseEditSaveOptions) => UseEditSaveReturn; export {};