import type { estypes } from '@elastic/elasticsearch'; import type { SearchAdapter } from '../common/typing.ts'; /** * Use elasticsearch to search the huge npm packages. */ export declare class ESSearchAdapter implements SearchAdapter { private config; private readonly elasticsearch; search(query: any): Promise>; upsert(id: string, document: T): Promise; delete(id: string): Promise; }