1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | /**
|
---|
9 | * Moves an item one index in an array to another.
|
---|
10 | * @param array Array in which to move the item.
|
---|
11 | * @param fromIndex Starting index of the item.
|
---|
12 | * @param toIndex Index to which the item should be moved.
|
---|
13 | */
|
---|
14 | export declare function moveItemInArray<T = any>(array: T[], fromIndex: number, toIndex: number): void;
|
---|
15 | /**
|
---|
16 | * Moves an item from one array to another.
|
---|
17 | * @param currentArray Array from which to transfer the item.
|
---|
18 | * @param targetArray Array into which to put the item.
|
---|
19 | * @param currentIndex Index of the item in its current array.
|
---|
20 | * @param targetIndex Index at which to insert the item.
|
---|
21 | */
|
---|
22 | export declare function transferArrayItem<T = any>(currentArray: T[], targetArray: T[], currentIndex: number, targetIndex: number): void;
|
---|
23 | /**
|
---|
24 | * Copies an item from one array to another, leaving it in its
|
---|
25 | * original position in current array.
|
---|
26 | * @param currentArray Array from which to copy the item.
|
---|
27 | * @param targetArray Array into which is copy the item.
|
---|
28 | * @param currentIndex Index of the item in its current array.
|
---|
29 | * @param targetIndex Index at which to insert the item.
|
---|
30 | *
|
---|
31 | */
|
---|
32 | export declare function copyArrayItem<T = any>(currentArray: T[], targetArray: T[], currentIndex: number, targetIndex: number): void;
|
---|