import type { Reached, RowPick } from './described.js'; /** How many of `rows` hold each word. */ export declare function holdersOf(rows: readonly { readonly holds: readonly string[]; }[]): Map; /** * Whether a row carries most of the question: the words it holds weigh at least * half of what `asked` weighs, each word its {@link rarity} among the repository's * `names`. This is Lucene's `minimum_should_match` weighed by rarity, so a row * sharing one common word is left out and a word nothing holds weighs the most. * `reached` holds every row of the repository holding an asked word, in an area * too, and counts each word's holders. */ export declare function carriesMost(asked: readonly string[], reached: readonly { readonly holds: readonly string[]; }[], names: number): (row: { readonly words: readonly string[]; }) => boolean; /** * The row of `picks`, best first, a name is shown through, and the rows level * with it. A row with no doc writes no phrase, so it never comes before the row chosen. */ export declare function representedBy(picks: readonly RowPick[]): RowPick & { readonly tied: readonly RowPick[]; }; /** `one` shown through the best of its rows that `carries` admits; `undefined` when none does. A file or a declaration is its one row. */ export declare function carriedThrough(one: Reached, carries: (row: { readonly words: readonly string[]; }) => boolean): Reached | undefined; //# sourceMappingURL=carried.d.ts.map