type Key = string | number; export interface ListItem { id: Key; name: string; value: any; } interface UseListOptions { initialItems: ListItem[]; onChange?: (updatedItems: ListItem[]) => void; } export declare function useList({ initialItems, onChange }: UseListOptions): { items: ListItem[]; getItem: (key: Key) => ListItem | undefined; remove: (key: Key) => void; moveBefore: (targetKey: Key, keys: Iterable) => void; moveAfter: (targetKey: Key, keys: Iterable) => void; }; export {};