UNPKG

giga-code

Version:

A personal AI CLI assistant powered by Grok for local development.

16 lines (15 loc) 545 B
interface FuzzyMatch { item: any; score: number; matches: number[]; } /** * Simple fuzzy matching algorithm that scores matches based on: * - Exact matches get highest score * - Sequential character matches get high score * - Character matches get base score * - Shorter strings with matches get bonus points */ export declare function fuzzyMatch(query: string, target: string): FuzzyMatch | null; export declare function fuzzySearch<T>(query: string, items: T[], getText: (item: T) => string, limit?: number): T[]; export {};