import React, { type ReactNode } from "react"; import { type UniqueIdentifier } from "@dnd-kit/core"; export declare const ContextMenu2SortableContext: React.Context<{ isSorting: boolean; setIsSorting: (_: boolean) => void; }>; type ContextMenu2SortableContainerProps = { /** SortableContext に登録する ID(並べ替え可能な項目のみ) */ order: UniqueIdentifier[]; /** 固定行を含む表示順。省略時は order と同じ */ displayOrder?: UniqueIdentifier[]; children: ReactNode; onOrderChange: (order: UniqueIdentifier[]) => void; }; export declare const ContextMenu2SortableGroup: ({ order, displayOrder, children, onOrderChange, }: ContextMenu2SortableContainerProps) => React.JSX.Element; type ContextMenu2SortableItemProps = { id: UniqueIdentifier; disabled?: boolean; children: ReactNode; }; export declare const ContextMenu2SortableItem: { ({ id, disabled, children, }: ContextMenu2SortableItemProps): React.JSX.Element; displayName: string; }; type ContextMenu2SortableFixedItemProps = { id: UniqueIdentifier; children: ReactNode; }; /** 並べ替え不可の行。SortableGroup 内で SortableContext の外として描画する */ export declare const ContextMenu2SortableFixedItem: { ({ id, children, }: ContextMenu2SortableFixedItemProps): React.JSX.Element; displayName: string; }; export {};