import { FetchPackagesOptions } from "./registry.js"; //#region ts/searchByKeywords.d.ts type SearchByKeywordsOptions = FetchPackagesOptions; /** * Finds packages on the npm registry that carry *all* of `keywords`. * * Results come from the registry search endpoint over `fetch`, then are filtered * client-side: the registry's `keywords:` qualifier matches loosely, so the strict * all-keywords check still happens here. * * At most `DEFAULT_MAX_RESULTS` (1000) matches are fetched by default. Pass * `{ maxResults: Number.POSITIVE_INFINITY }` to page through everything the registry has, * or call `fetchPackagesByKeywords` directly to see whether the results were truncated. */ declare function searchByKeywords(keywords: string[], fields?: undefined, options?: SearchByKeywordsOptions): Promise; declare function searchByKeywords(keywords: string[], fields: string[], options?: SearchByKeywordsOptions): Promise<(Record & { name: string; })[]>; //#endregion export { SearchByKeywordsOptions, searchByKeywords }; //# sourceMappingURL=searchByKeywords.d.ts.map