import { ConfigurableDocument, MaybeRefOrGetter } from '@vueuse/core'; import Sortable, { Options } from 'sortablejs'; interface UseSortableReturn { /** * start sortable instance */ start: () => void; /** * destroy sortable instance */ stop: () => void; /** * Options getter/setter * @param name a Sortable.Options property. * @param value a value. */ option: ((name: K, value: Sortable.Options[K]) => void) & ((name: K) => Sortable.Options[K]); } type UseSortableOptions = Options & ConfigurableDocument; declare function useSortable(selector: string, list: MaybeRefOrGetter, options?: UseSortableOptions): UseSortableReturn; declare function useSortable(el: MaybeRefOrGetter, list: MaybeRefOrGetter, options?: UseSortableOptions): UseSortableReturn; declare function moveArrayElement(list: MaybeRefOrGetter, from: number, to: number): void; export { type UseSortableOptions, type UseSortableReturn, moveArrayElement, useSortable };