import { type Dictionary } from './loose.js'; import type { DeclaredMatch, DeclaredRead } from './search-matches.js'; /** * The loose pass over the names a file keeps to itself. * * Those names are in no export list, so the search file's dictionary does not * hold them. The source index does: the sense addon cuts every harvested * top-level name into terms by the rule the search file cuts an exported one, * and hands back the distinct terms, sorted as that dictionary is. Each word * of the question is matched against them here, by `matchingTerms` — the one * rule, equal, prefix or one edit off — and the addon answers with the * declarations whose name holds a matched term for every word. * * A name is reached by its own words only, never by its doc: the loose pass * reaches an exported name through a doc so that a phrase split by other * words is found, and the described reading already reads a declaration's doc * for its words. */ /** * The declarations no export binds whose name the loose pass reaches for * `query`, in `files` when they are named, less the ones `already` holds as * `at:line:name`; `undefined` when no checkout was named, or its source index * is absent or does not read, which the `declared` section already says. */ export declare function looseDeclarations(root: string | undefined, query: string, fuzzy: number, files: Iterable | undefined, already: ReadonlySet): readonly DeclaredRead[] | undefined; /** A declaration as one key: two can share a name, never a file, a line and a name. */ export declare const declaredKey: (one: Pick) => string; /** Terms already sorted by their UTF-8 bytes, read as a dictionary. */ export declare function dictionaryOf(terms: readonly string[]): Dictionary; //# sourceMappingURL=loose-declared.d.ts.map