/**
 * `GET /api/search?q=` — the search palette's one round-trip.
 *
 * Three lookups feed it, because no single one covers what a person types into
 * a palette:
 *
 * - `getNodesByNameSubstring` — case-insensitive, catches the exact, prefix and
 *   mid-name matches (`profileInfo` inside `getProfileInfoV2`) that FTS tokens
 *   cannot.
 * - `searchNodes` — FTS5, plus the engine's own LIKE and fuzzy fallbacks, and
 *   the `kind:` / `lang:` / `path:` / `name:` filter grammar for free.
 * - `getNodesByName` — every symbol with exactly that name, uncapped, so a
 *   heavily-overloaded name never loses its definitions below a search cut.
 *
 * They are then merged and ranked by HOW the name matched — exact, prefix,
 * substring, qualified name, file path — rather than by any single engine's
 * score, because those scores are not comparable with each other. Results are
 * grouped by kind: "did I mean the class or the method" is the question a
 * palette actually has to answer.
 */
import type { CodeGraph } from '../../index';
import { type WireNodeRef } from './wire';
/** How a result's text matched the query. Also the primary sort key. */
export type MatchKind = 'exact' | 'prefix' | 'substring' | 'qualified' | 'file' | 'related';
export interface WireSearchResult extends WireNodeRef {
    matchKind: MatchKind;
}
export declare function buildSearch(cg: CodeGraph, query: URLSearchParams): unknown;
//# sourceMappingURL=search.d.ts.map