/** * Mapping Suggester — rank Eddie catalog candidates for a bespoke pattern * family. Advisory only: the adoption-plan skill verifies every suggestion via * `eddie_get_component` before it becomes a `[verified]` mapping, and an empty * candidate list is a first-class answer (a `carbon-ad` family should map to * nothing rather than to a hallucinated component). * * Deterministic and dependency-free: simple tokenization + fuzzy-prefix token * matching over the family's names/classes/context tags against each catalog * entry's name, intent, and `@use` guidance. No embeddings, no LLM. */ import type { ComponentEntry } from '../types.js'; import type { PatternFamily } from './pattern-inventory.js'; export interface MappingCandidate { tagName: string; confidence: 'high' | 'medium' | 'low'; rationale: string; } export interface MappingSuggestion { family: string; candidates: MappingCandidate[]; } /** * Rank Eddie components/recipes for each pattern family. Returns at most three * candidates per family; families with no plausible match get an empty list. * Page templates (`ed-p-*`) are excluded — a class family maps to a component * or recipe, not a full page. */ export declare function suggestMappings(catalog: ComponentEntry[], families: PatternFamily[]): MappingSuggestion[]; //# sourceMappingURL=mapping-suggester.d.ts.map