import type { FileSet, Tree } from '@variance-authority/mcp/tools'; import type { SearchIndex } from '../search-index.js'; import type { Area } from './area.js'; import { type RowOrder } from './described.js'; import { type ImportingOf } from './published-match.js'; import type { SearchAnswer, Searched, SearchQuestion } from './search-matches.js'; /** Published matches shown before the answer says it stopped, when the question says no `limit`. */ export declare const CAP = 20; /** Exported matches shown when no `limit` is said; held ones, imports binding the name and test cases too. Lower, because the section below it is the cheaper half; the rest are counted, and a higher `limit` shows them. */ export declare const ELSEWHERE_CAP = 10; /** Loose matches shown when no `limit` is said: these are the ones the caller did not ask for. */ export declare const LOOSE_CAP = 10; /** Described matches shown: as many as the loose pass, the same kind of guess. */ export declare const DESCRIBED_CAP = 10; /** * Near matches shown after a question of two words or more answered as written, when no `limit` is said: * the described rows the answer does not show, a few of the repository's own wordings and not a second answer. */ export declare const NEAR_CAP = 5; /** * The described section's {@link RowOrder}: a published row before an exported one, then {@link surfaceOrder} with the * question found alike in each, or {@link exportedOrder}. The published and exported sections also put a published row * first, before where the question was found; the described section puts a row's weight, then its phrase, before it. */ export declare function shownRowOrder(index: SearchIndex, area: Area | undefined, within: ReadonlySet | undefined): RowOrder; /** * The same search's workspace files, before display caps. Each evaluated * section contributes its matching coordinates, including described and loose * candidates when those passes run. Installed names identify no workspace file. */ export declare function searchedFiles(index: SearchIndex, question: SearchQuestion, tree?: Tree, root?: string): FileSet; /** * The search over an opened index, and the area the text answer names. Each * published row shown is counted by `importingOf` when it is given, as `uses` * counts that name. */ export declare function searched(index: SearchIndex, question: SearchQuestion, tree?: Tree, root?: string, importingOf?: ImportingOf): Searched; /** * The names `search` answers with, as data. * * The same answer `variance ask search` prints, before it is written as text: * published names first, then the names the source exports without * publishing, then — only when both are empty — the names a looser reading * finds and the names that hold any of the words. Each published row shown is * counted by `importingOf` when it is given, as `uses` counts that name, and * the rows shown are ordered by that count. */ export declare function searchNames(index: SearchIndex, question: SearchQuestion, tree?: Tree, root?: string, importingOf?: ImportingOf): SearchAnswer; //# sourceMappingURL=search-answer.d.ts.map