import type { DocumentChapter } from "../../types/sections";
import type { ChapterEditDraft } from "./types";
interface ChapterItemProps {
    chapter: DocumentChapter;
    isActive: boolean;
    isExpanded: boolean;
    /** When true a drag handle is shown and the item participates in DnD. */
    canReorder: boolean;
    /** The item is being dragged — render as invisible placeholder. */
    isBeingDragged: boolean;
    onSelect: () => void;
    /** Toggle the chevron to expand/collapse this chapter's sections. */
    onToggleExpanded?: () => void;
    /** When true, show a small × button on hover that triggers `onRemove`. */
    onRemove?: () => void;
    /**
     * When provided, an edit (✎) button is shown that opens the inline chapter
     * properties form.  The draft/handlers below drive that form.
     */
    onStartEdit?: () => void;
    /** The active edit draft for this chapter, or `null` when not editing. */
    editDraft?: ChapterEditDraft | null;
    onDraftChange?: (draft: ChapterEditDraft) => void;
    onEditCommit?: () => void;
    onEditCancel?: () => void;
    /** Show a drop-target line above this chapter row. */
    isDropBefore?: boolean;
    /** Show a drop-target line below this chapter row. */
    isDropAfter?: boolean;
    children?: React.ReactNode;
}
declare const ChapterItem: ({ chapter, isActive, isExpanded, canReorder, isBeingDragged, onSelect, onToggleExpanded, onRemove, onStartEdit, editDraft, onDraftChange, onEditCommit, onEditCancel, isDropBefore, isDropAfter, children, }: ChapterItemProps) => import("react/jsx-runtime").JSX.Element;
export default ChapterItem;
