/** @group Array */ export declare function arrayHasItem(array: T[], item: T): boolean; /** * Clears the array so its empty. Returns the amount of removed items. */ export declare function arrayClear(array: T[]): number; /** * Removes on particular item by reference of an array. */ export declare function arrayRemoveItem(array: T[], item: T): boolean; /** * Moves a particular item in an array up or down (move>0=down, move<0=up). * Changes the array itself. * * ```typescript * const array = ['a', 'b', 'c']; * * arrayMoveItem(array, 'a', +1); //['b', 'a', 'c'] * arrayMoveItem(array, 'a', -1); //['a', 'b', 'c'] * * arrayMoveItem(array, 'b', -1); //['b', 'a', 'c'] * arrayMoveItem(array, 'b', +1); //['a', 'c', 'b'] * * arrayMoveItem(array, 'c', -1); //['b', 'c', 'b'] * arrayMoveItem(array, 'c', +1); //['a', 'b', 'c'] * * ``` */ export declare function arrayMoveItem(array: A, item: T, move: number): A;