import { PredicateCallback } from "./types"; export declare namespace Array { /** remove the elements that meet the condition specified in a callback function */ function remove(array: T[], predicate: PredicateCallback): T[]; /** remove the elements from given start location */ function remove(array: T[], index: number, length?: number): T[]; /** remove the elements of given index array */ function remove(array: T[], indexs: number[]): T[]; /** swap two element in array by given index */ function swap(array: T[], idx1: number, idx2: number): T[]; /** swap two element that meet the condition specified in a callback function in array */ function swap>(array: T[], pred1: P, pred2: P): T[]; }