/** * Filters an array based on a predicate function. * @param arr The array to filter. * @param predicate The predicate function used to filter elements. * @returns A new array containing only the elements that satisfy the predicate function. */ export declare function filterArray(arr: T[], predicate: (element: T) => boolean): T[]; /** * Maps each element of an array to a new value using a transformation function. * @param arr The array to map. * @param mapper The transformation function to apply to each element. * @returns A new array containing the transformed elements. */ export declare function mapArray(arr: T[], mapper: (element: T) => U): U[]; export declare function binarySearch(arr: T[], target: T): number; export declare function quickSort(arr: T[]): T[]; export declare function quickSortDescending(arr: T[]): T[]; export declare function arrPush(arr: T[], target: T): T[]; export declare function arrUnshift(arr: T[], target: T): T[]; export declare function arrPop(arr: T[]): T[]; export declare function arrShift(arr: T[]): T[]; export declare function arrSlice(arr: T[], start: number, end: number): T[]; export declare function arrToUpperCase(arr: T[]): T[]; export declare function arrToLowerCase(arr: T[]): T[];