export interface ScoredResult { item: T; score: number; } /** * Score how well `query` matches `text`. * Returns 0 for no match, higher for better matches. * * Scoring: * - Exact substring match: 100 * - All query words present: 60 + (10 * word count bonus) * - Partial word matches: 10 per matched word */ export declare function fuzzyScore(query: string, text: string): number; /** Search items by scoring a text field, return top N sorted by score descending */ export declare function fuzzySearch(items: T[], query: string, getText: (item: T) => string, limit?: number): ScoredResult[];