/**
 * Search Helper
 *
 * Provides consistent search behavior across all PRIVATE.ME packages.
 */
import type { SearchOptions } from './types.js';
/**
 * Search a collection of items.
 *
 * Performs case-insensitive substring matching across specified fields.
 *
 * @param items Collection to search
 * @param options Search options (query, fields, fuzzy, limit)
 * @returns Filtered items matching the search query
 *
 * @example
 * ```typescript
 * const items = [
 *   { name: 'Alice', email: 'alice@example.com' },
 *   { name: 'Bob', email: 'bob@example.com' },
 *   { name: 'Charlie', email: 'charlie@example.com' },
 * ];
 *
 * const results = search(items, {
 *   query: 'alice',
 *   fields: ['name', 'email'],
 * });
 * // results = [{ name: 'Alice', email: 'alice@example.com' }]
 * ```
 */
export declare function search<T>(items: readonly T[], options: SearchOptions): readonly T[];
//# sourceMappingURL=search.d.ts.map