/** * Universal Search Command * * Queries all activated capabilities via CapabilityManager.search() and * renders merged, score-ranked results grouped by content type. */ import type { CapabilityName, DirectoryScan, SearchResult } from '../capabilities/types.js'; import type { Command } from '../types.js'; export declare function groupByType(results: SearchResult[]): Partial>; /** * The `code` capability searches the monograph knowledge graph, which is * built separately (`monomind monograph build`) — the directory scan only * records that code files are present, it doesn't index their content. * Zero results with that DB missing almost always means "never indexed * yet", not "no matches" — this decides when to say so. */ export declare function needsCodeIndexHint(resultCount: number, typeFilter: CapabilityName | undefined, codeActive: boolean, monographDbExists: boolean): boolean; export declare function formatSearchResults(results: SearchResult[]): string; /** * Scan the working directory for content-type capabilities and persist an * updated fingerprint to .monomind/. Shared by `search scan` and the * auto-rescan path in `search` (formerly the standalone `scan` command). */ export declare function runCapabilityScan(cwd: string): Promise; /** * Issue #479: the fingerprint decides which content types `search` looks at, * and it is only refreshed by `search scan` or once it is a day old. A * document `doc ingest` (or MCP `knowledge_ingest`, or the session-start * auto-ingest) just indexed was therefore invisible to `search` whenever the * last scan predated it, or whenever documents were under the activation * threshold's share of the tree. Live documents in the project's doc store * are an explicit signal that documents matter here, so they switch the * documents type on for this search — no rescan, and the saved fingerprint is * left alone. The documents type still reads files from the working tree; the * doc store only decides that it runs. */ export declare function withIngestedDocuments(scan: DirectoryScan, cwd: string): DirectoryScan; export declare const searchUniversalCommand: Command; export default searchUniversalCommand; //# sourceMappingURL=search-universal.d.ts.map