@zerospacegg/vynthra
Version:
Discord bot for ZeroSpace.gg data
18 lines • 681 B
TypeScript
import type { SearchOptions, SearchResult } from "./types.js";
/**
* Search for entities by query string
*
* Priority order:
* 1. Exact ID match
* 2. Exact slug match
* 3. Exact name match
* 4. Slug ends with query (e.g., "vynthra" matches entities ending in "vynthra")
* 5. ID contains query as segment (e.g., "stinger" matches "faction/grell/unit/stinger")
* 6. Fuzzy matches on ID, slug, and name
*/
export declare function searchEntities(query: string, options?: SearchOptions): SearchResult;
/**
* Get a human-readable description of search results
*/
export declare function describeSearchResult(result: SearchResult): string;
//# sourceMappingURL=search.d.ts.map