import { TArrayWithErrors } from '../types/tarray-with-errors'; export declare function commonsArrayRemove(array: T[], item: T, isEqual?: (a: T, b: T) => boolean): boolean; export declare function commonsArrayChunk(src: T[], size: number): T[][]; export declare function commonsArrayUnique(src: T[], checker?: (_: unknown) => _ is T, isEqual?: (a: T, b: T) => boolean): T[]; export declare function commonsArrayIntersect(as: T[], bs: T[], checker?: (_: unknown) => _ is T, isEqual?: (a: T, b: T) => boolean): T[]; export declare function commonsArrayUnion(as: T[], bs: T[], checker?: (_: unknown) => _ is T, isEqual?: (a: T, b: T) => boolean): T[]; export declare function commonsArrayDifference(as: T[], bs: T[], checker?: (_: unknown) => _ is T, isEqual?: (a: T, b: T) => boolean): T[]; export declare function commonsArrayRemoveAll(existings: T[], toRemoves: T[], checker?: (_: unknown) => _ is T, isEqual?: (a: T, b: T) => boolean): boolean; export declare function commonsArrayUnionWithout(as: T[], bs: T[], withouts: T[], checker?: (_: unknown) => _ is T, isEqual?: (a: T, b: T) => boolean): T[]; export declare function commonsArrayAdded(originals: T[], news: T[], checker?: (_: unknown) => _ is T, isEqual?: (a: T, b: T) => boolean): T[]; export declare function commonsArrayRemoved(originals: T[], news: T[], checker?: (_: unknown) => _ is T, isEqual?: (a: T, b: T) => boolean): T[]; export declare function commonsArraySetCombinations(source: T[], setSize: number): T[][]; export declare function commonsArrayRandomize(array: T[]): void; export declare function commonsArrayShuffle(array: T[], minDistance?: number): boolean; export declare function commonsArraySplitMapErrors(array: (T | Error)[]): TArrayWithErrors; export declare function commonsArrayMapWithErrors(src: S[], callback: (item: S) => D | Error): TArrayWithErrors; export declare function commonsArrayEmpty(array: unknown[]): void; export declare function commonsArrayRemoveUndefineds(array: (T | undefined)[]): T[]; export declare function commonsArrayRemoveUndefinedsPromise(array: Promise<(T | undefined)>[]): Promise; export declare function commonsArrayRandomSample(array: T[], size: number): T[]; export declare function commonsArrayBestItem(array: T[], sortComparator: (a: T, b: T) => number): T | undefined; export declare function commonsArrayRapidSortHead(array: T[], length: number, isLess: (test: T, existing: T) => boolean): T[];