import type { JinnConfig } from "../shared/types.js"; import { type GlobalSearchResponse, type SearchKind } from "./types.js"; /** * One query in, ranked cross-entity results out. Kinds are searched * independently and concatenated in `SEARCH_KINDS` order — deliberately not * interleaved by score, because a stable list is what ⌘K muscle memory needs. */ export interface GlobalSearchRequest { query: string; /** Restrict to one kind. The Todos search box enters with `scope=todos`. */ scope?: SearchKind; literal?: boolean; /** Per-kind cap, not a total. */ limit: number; config: JinnConfig; /** Notes root; the gateway's test-injectable home when it has one. */ home?: string; } export type GlobalSearchOutcome = { ok: true; value: GlobalSearchResponse; } | { ok: false; error: string; }; export declare function runGlobalSearch(request: GlobalSearchRequest): GlobalSearchOutcome; //# sourceMappingURL=global-search.d.ts.map