/** * Search Enhancement System * Maps action words to semantic equivalents and categorizes terms for intelligent ranking */ export declare class SearchEnhancer { /** * Semantic action mappings for enhanced intent matching * Maps indirect actions to their direct equivalents */ private static readonly ACTION_SEMANTIC; /** * Term type classification for differentiated scoring * Categorizes query terms by their semantic role */ private static readonly TERM_TYPES; /** * Scoring weights for different term types * Higher weights indicate more important semantic roles */ private static readonly SCORING_WEIGHTS; /** * Get semantic mappings for an action word */ static getActionSemantics(action: string): string[]; /** * Classify a term by its semantic type */ static classifyTerm(term: string): string; /** * Get scoring weights for a term type */ static getTypeWeights(termType: string): { name: number; desc: number; }; /** * Get all action words for a specific category */ static getActionsByCategory(category: 'write' | 'read' | 'modify' | 'delete' | 'search' | 'execute'): string[]; /** * Add new action semantic mapping (for extensibility) */ static addActionSemantic(action: string, semantics: string[]): void; /** * Add terms to a type category (for extensibility) */ static addTermsToType(type: string, terms: string[]): void; /** * Update scoring weights for a term type (for tuning) */ static updateTypeWeights(type: string, nameWeight: number, descWeight: number): void; /** * Calculate intent penalty for conflicting actions */ static getIntentPenalty(actionTerm: string, toolName: string): number; /** * Get debug information for a query */ static analyzeQuery(query: string): { terms: string[]; classifications: { [term: string]: string; }; actionSemantics: { [action: string]: string[]; }; weights: { [term: string]: { name: number; desc: number; }; }; }; /** * Get all available term types (for documentation) */ static getAllTermTypes(): string[]; /** * Get all action words (for documentation) */ static getAllActions(): string[]; } export default SearchEnhancer; //# sourceMappingURL=search-enhancer.d.ts.map