/** * Decomposes a camelCase, PascalCase, snake_case, or CONSTANT_CASE identifier * into individual word segments. * * Examples: * "GetStreakInfoService" → ["Get", "Streak", "Info", "Service"] * "process_payment" → ["process", "payment"] * "HTTPSConnection" → ["HTTPS", "Connection"] */ export declare function decomposeIdentifier(name: string): string[]; /** * Jaro-Winkler similarity between two strings. Returns 0–1 (1 = identical). * Prefix bonus rewards strings that share a common beginning. */ export declare function jaroWinkler(s1: string, s2: string): number; export interface FindSimilarOptions { /** "identifier" for camelCase/snake_case decomposition, "path" for "/" splitting */ mode?: "identifier" | "path"; /** Minimum score to include (default 0.78) */ threshold?: number; /** Max suggestions to return (default 5) */ maxResults?: number; } /** * Finds the most similar strings from a candidate set using Jaro-Winkler similarity * with segment-level matching. Returns candidates sorted by score, original case preserved. */ export declare function findSimilar(query: string, candidates: Iterable, options?: FindSimilarOptions): string[]; //# sourceMappingURL=string-similarity.d.ts.map