import { SearchOptions } from '../../types'; /** * Searches an array of objects and returns the items that match the search * * @since v1.14.0 * @category Array * @template {T} - The type of the array * @param {T[]} array - The array of items * @param {string | string[]} search - The search term or array of search terms * @param {SearchOptions} options - The optional different configuration options that can be used to customize the search * @returns {T[]} * @example * const array = [ * { name: 'John Doe', address: '123 Sesame Street', amount: 1000 }, * { name: 'Jane Doe', address: '456 Walnut Street', amount: 500 }, * ]; * * search(array, 'joh', { keys: ['name'], caseSensitive: false }) //=> [{ name: 'John Doe', address: '123 Sesame Street', amount: 1000 }] */ export declare function search(array: T[], search: string | string[], options?: SearchOptions): T[];