import type { DocumentSection, DocumentSectionType } from "../../types/sections";
import type { EditDraft } from "./types";
export interface SectionEditState {
    editingId: string | null;
    editDraft: EditDraft | null;
    startEdit: (section: DocumentSection) => void;
    setEditDraft: (draft: EditDraft) => void;
    commitEdit: (onUpdateSection: (id: string, changes: {
        title?: string;
        type?: DocumentSectionType;
        xmlId?: string | null;
        label?: string | null;
    }) => void) => void;
    cancelEdit: () => void;
}
/**
 * Owns the inline edit-form state for a single section row.  Only one section
 * can be edited at a time; entering edit mode on a new section cancels any
 * in-progress edit.
 */
export declare function useSectionEdit(): SectionEditState;
