import type { DocumentChapter } from "../../types/sections";
import type { ChapterEditDraft } from "./types";
export interface ChapterEditState {
    editingId: string | null;
    editDraft: ChapterEditDraft | null;
    startEdit: (chapter: DocumentChapter) => void;
    setEditDraft: (draft: ChapterEditDraft) => void;
    commitEdit: (onUpdateChapter: (id: string, changes: {
        title?: string;
        xmlId?: string | null;
        label?: string | null;
    }) => void) => void;
    cancelEdit: () => void;
}
/**
 * Owns the inline edit-form state for a single chapter row.  Mirrors
 * {@link useSectionEdit}: only one chapter can be edited at a time, and the
 * draft is seeded from the chapter's metadata (title, xml:id, label) rather
 * than re-parsing its source, since non-active chapters may not be loaded.
 */
export declare function useChapterEdit(): ChapterEditState;
