import { IObservableArray } from "mobx"; /** * Moves an item from one position to another, checking that the indexes given are within bounds. * * @example * const source = observable([1, 2, 3]) * moveItem(source, 0, 1) * console.log(source.map(x => x)) // [2, 1, 3] * * @export * @param {ObservableArray} target * @param {number} fromIndex * @param {number} toIndex * @returns {ObservableArray} */ export declare function moveItem(target: IObservableArray, fromIndex: number, toIndex: number): IObservableArray | undefined;