import { ComponentMetadata } from './component-metadata.js'; /** Options accepted by {@link createComponentSearcher}. */ export interface CreateComponentSearcherOptions { componentNames: string[]; metadata: Record; } /** Pre-built search index with `search` and `resolve` methods. */ export interface ComponentSearcher { search(query: string): string[]; /** The component whose key or selector matches the query exactly, if exactly one does. */ resolve(query: string): string | undefined; } /** * Build a pre-indexed component searcher from theme names and metadata. * * The returned searcher normalises queries, scores them against an * index of canonical names / aliases / selectors, and returns results * ranked by confidence (exact > token-set > overlap > substring > typo). */ export declare function createComponentSearcher(options: CreateComponentSearcherOptions): ComponentSearcher;