/** * String Similarity Utilities for UAM * * Shared text comparison functions used across memory compression, * deduplication, and retrieval systems. */ /** * Calculate Jaccard similarity between two strings (word-level) * Returns a value between 0 (no overlap) and 1 (identical) */ export declare function jaccardSimilarity(a: string, b: string): number; /** * Calculate content hash for deduplication * Uses SHA-256 for reliable collision resistance */ export declare function contentHash(text: string): string; /** * Improved token estimation * More accurate than simple length/4 for mixed code and prose */ export declare function estimateTokensAccurate(text: string): number; /** * Simple stemming for keyword matching * Handles common English suffixes for better fuzzy matching */ export declare function simpleStem(word: string): string; /** * Fuzzy keyword match using stemming * Returns true if any stemmed form matches */ export declare function fuzzyKeywordMatch(text: string, keyword: string): boolean; /** * Calculate text similarity using multiple methods * Returns weighted average for more robust comparison */ export declare function textSimilarity(a: string, b: string): number; //# sourceMappingURL=string-similarity.d.ts.map