This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@mariozechner/pi-tui/dist/fuzzy.d.ts
T

16 lines
574 B
TypeScript

/**
* Fuzzy matching utilities.
* Matches if all query characters appear in order (not necessarily consecutive).
* Lower score = better match.
*/
export interface FuzzyMatch {
matches: boolean;
score: number;
}
export declare function fuzzyMatch(query: string, text: string): FuzzyMatch;
/**
* Filter and sort items by fuzzy match quality (best matches first).
* Supports space-separated tokens: all tokens must match.
*/
export declare function fuzzyFilter<T>(items: T[], query: string, getText: (item: T) => string): T[];
//# sourceMappingURL=fuzzy.d.ts.map