UNPKG

@typecad/jlcpcb-parts

Version:

Intelligent fuzzy search for JLCPCB electrical components with CLI interface

29 lines 1.18 kB
/** * Utility class for recognizing component types and extracting keywords */ export declare class ComponentTypeRecognizer { private static readonly capacitorTypes; private static readonly resistorTypes; private static readonly inductorTypes; private static readonly tolerancePatterns; private static readonly commonKeywords; /** * Recognizes component type from input text * @param text - Input text that may contain component type information * @returns Recognized component type or undefined if not recognized */ static recognizeComponentType(text: string): string | undefined; /** * Extracts tolerance value from input text * @param text - Input text that may contain tolerance information * @returns Tolerance value as a string (e.g., "±1%") or undefined if not found */ static extractTolerance(text: string): string | undefined; /** * Extracts keywords from input text * @param text - Input text to extract keywords from * @returns Array of extracted keywords */ static extractKeywords(text: string): string[]; } //# sourceMappingURL=ComponentTypeRecognizer.d.ts.map