/**
 * String Similarity Utilities for UAP
 *
 * 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 — delegates to the canonical implementation
 * in context-compressor.ts to maintain a single source of truth.
 * Kept as a public API alias for backward compatibility.
 */
export { estimateTokens as estimateTokensAccurate } from '../memory/context-compressor.js';
/**
 * 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 cosine similarity between two numeric vectors.
 * Shared implementation used by EmbeddingService and ServerlessQdrantManager.
 * Returns a value between -1 (opposite) and 1 (identical).
 */
export declare function cosineSimilarity(a: number[], b: number[]): number;
/**
 * 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