import type { DocumentSection } from "../../types/sections";
import { type EditDraft } from "./types";
interface SortableSectionItemProps {
    section: DocumentSection;
    isActive: boolean;
    /** The item is currently being dragged — render as invisible placeholder. */
    isBeingDragged: boolean;
    /** Show a drop-target line above this item. */
    isDropBefore: boolean;
    /** Show a drop-target line below this item. */
    isDropAfter: boolean;
    isMergeTarget: boolean;
    editDraft: EditDraft | null;
    onSelect: () => void;
    onStartEdit: () => void;
    onRemove: () => void;
    onDraftChange: (draft: EditDraft) => void;
    onEditCommit: () => void;
    onEditCancel: () => void;
    canRemove: boolean;
    readonly: boolean;
    isLatex: boolean;
    /**
     * Explicit override: when set, controls whether the drag handle is shown
     * regardless of `readonly`.  Used by book mode to keep sections in
     * non-active (read-only) chapters draggable for cross-chapter moves.
     * When undefined, drag follows `!readonly` (the original behavior).
     */
    dragEnabled?: boolean;
}
declare const SortableSectionItem: ({ section, isActive, isBeingDragged, isDropBefore, isDropAfter, isMergeTarget, editDraft, onSelect, onStartEdit, onRemove, onDraftChange, onEditCommit, onEditCancel, canRemove, readonly, isLatex, dragEnabled, }: SortableSectionItemProps) => import("react/jsx-runtime").JSX.Element;
export default SortableSectionItem;
