interface UseControlledList { /** Initial value for uncontrolled state */ defaultValue?: T[]; /** Value for controlled state */ value?: T[]; /** Controlled state onChange handler */ onChange?: (values: T[]) => void; } interface ListHandlers { /** Appends the item at the end of the list */ append: (item: T) => void; /** Removes the item at the index from the list */ remove: (index: number) => void; /** Moves the item at the "from" position to another position within the list */ reorder: ({ from, to }: { from: number; to: number; }) => void; } /** * Manage a list of items in a controlled fashion, to be used with inputs */ export declare const useControlledList: ({ defaultValue, value, onChange }: UseControlledList) => [T[], ListHandlers]; export {}; //# sourceMappingURL=useControlledList.d.ts.map