reneco-advanced-input-module 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,7 @@ export declare class OpenAILLMService implements LLMProvider {
9
9
  private getEnvironmentVariable;
10
10
  private getOptimizeFieldsDescription;
11
11
  fillFormFromTranscription(transcription: string, schema: any): Promise<any>;
12
+ private applyFuzzyMatching;
12
13
  fillFormFromJson(json: string, schema: any): Promise<any>;
13
14
  private fillForm;
14
15
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Find best matching option using fuzzy matching
3
+ * @param value - The value to match
4
+ * @param options - Array of available options
5
+ * @param threshold - Maximum distance ratio (0-1), lower = stricter. Default 0.3
6
+ * @returns Best match or null if no good match found or multiple matches with same confidence
7
+ */
8
+ export declare function fuzzyMatchOption(value: string, options: string[], threshold?: number): {
9
+ match: string;
10
+ confidence: number;
11
+ } | null;