/** * Intent search over the block catalog. * * An agent that knows what it wants ("sortable table", "pricing") should not * have to load the whole catalog to find the block for it. `searchCatalog` * ranks block types by plain word overlap with the type name, tags, use cases, * category and summary. There is no fuzzy matching, locale or randomness, so * the same query against the same roster always returns the same hits. */ import type { BlockCategory } from './block-module.js'; export interface CatalogSearchHit { type: string; category: BlockCategory; summary: string; score: number; } /** Input bounds: a query is a short phrase, not a document. */ export declare const CATALOG_SEARCH_LIMITS: { readonly maxQueryLength: 200; readonly maxTokens: 8; readonly defaultHits: 8; readonly maxHits: 100; }; /** The distinct query words that are scored, in query order, stop words removed. */ export declare function catalogSearchTokens(query: string): string[]; /** * Rank block types against a short intent phrase. Sorted by score, highest * first, then by type in code-unit order; blocks that match no word are left * out, so an empty result means nothing matched. */ export declare function searchCatalog(query: string, limit?: number): CatalogSearchHit[]; //# sourceMappingURL=catalog-search.d.ts.map