/**
 * Returns an array of elements that are present in both input arrays.
 * @param {T[]} array1 - The first array.
 * @param {T[]} array2 - The second array.
 * @returns {T[]} An array containing elements present in both input arrays.
 * @template T
 * @deprecated - Use Set.intersection() instead.
 * @example
 * const arr1 = [1, 2, 3, 4, 5];
 * const arr2 = [3, 4, 5, 6, 7];
 * const result = intersection(arr1, arr2); // [3, 4, 5]
 */
export declare function intersection<T>(array1: T[], array2: T[]): T[];
